/* =============================================================================
   360 FinTech AI — shared design system
   ============================================================================= */
:root {
  --orange:        #F47B20;
  --deep-orange:   #E86812;
  --gold:          #D4A017;
  --gold-soft:     #E8CC8A;
  --bone:          #FBF8F2;
  --white:         #FFFFFF;
  --ink:           #1A1A1A;
  --ink-2:         #6B6258;
  --ink-3:         #9A8E7A;
  --rule:          #E8E2D4;
  --rule-strong:   #D4A017;
  --navy:          #0B1A33;
  --navy-deep:     #06122A;
  --slate:         #9AAEC8;
  --slate-deep:    #1E2A47;
  --shadow-sm: 0 1px 2px rgba(11,26,51,0.04);
  --shadow-md: 0 4px 24px -8px rgba(11,26,51,0.10);
  --shadow-lg: 0 24px 60px -20px rgba(11,26,51,0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: Calibri, system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* === Typography === */
.serif { font-family: Georgia, 'Times New Roman', serif; }
.mono  { font-family: 'Courier New', Courier, monospace; }

.eyebrow {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow-gold,
.eyebrow-slate { color: var(--orange); }

h1, h2 {
  font-family: Calibri, system-ui, -apple-system, sans-serif;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h3, h4 {
  font-family: Calibri, system-ui, sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1rem 0; }
a { color: inherit; text-decoration: none; transition: color 180ms var(--ease-out); }

/* === Layout === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 5rem);
  padding-right: clamp(1.25rem, 4vw, 5rem);
}
section { padding: clamp(4rem, 8vw, 8rem) 0; position: relative; }
.section-tight { padding: clamp(3rem, 5vw, 5rem) 0; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: Calibri, sans-serif;
  font-weight: 600; font-size: 0.95rem;
  border-radius: 4px;
  transition: all 180ms var(--ease-out);
  cursor: pointer; border: none;
}
.btn-primary { background: var(--deep-orange); color: var(--white); }
.btn-primary:hover { background: #d05e0d; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); padding-left: 0; padding-right: 0; }
.btn-ghost::after { content: '→'; transition: transform 180ms var(--ease-out); }
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-gold-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-gold-outline:hover { background: var(--gold); color: var(--navy); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--navy); }

/* === Header === */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251, 248, 242, 0);
  border-bottom: 1px solid transparent;
  transition: background 320ms var(--ease-out), border-color 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.header.scrolled {
  background: rgba(251, 248, 242, 0.92);
  border-bottom-color: var(--rule);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: Georgia, serif; font-weight: 600;
  color: var(--orange);
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.nav-brand svg { width: 56px; height: 56px; }
.brand-ai { color: inherit; }
.nav-links {
  display: none;
  align-items: center; gap: 2rem;
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a {
  color: var(--ink); font-size: 0.92rem; font-weight: 500;
  transition: color 180ms;
}
.nav-links a:hover, .nav-links a.active { color: var(--deep-orange); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-cta .signin {
  color: var(--ink); font-size: 0.92rem; font-weight: 500;
  display: none;
}
@media (min-width: 768px) { .nav-cta .signin { display: inline; } }
.nav-cta .signin:hover { color: var(--deep-orange); }
.hamburger {
  display: flex; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); }
@media (min-width: 1024px) { .hamburger { display: none; } }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; background: var(--bone); z-index: 99;
  padding: 96px 1.5rem 2rem; display: none; flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 1rem 0;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.mobile-menu .btn { margin-top: 1.5rem; justify-content: center; }

/* === Hero (homepage) === */
.hero {
  padding-top: clamp(7rem, 14vw, 12rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
  position: relative; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.hero-mark { display: flex; justify-content: center; order: -1; }
.hero-mark svg { width: clamp(220px, 30vw, 380px); height: auto; }
@media (min-width: 900px) { .hero-mark { order: 0; justify-content: flex-start; } }
.hero h1 { margin: 1.5rem 0; color: var(--ink); }
.hero h1 .accent { color: var(--deep-orange); }
.hero-sub {
  font-family: Calibri, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 34em;
  margin-bottom: 2.25rem;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  margin-bottom: 2.5rem;
}
.hero-trust {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.8;
}
.hero-trust .dot { color: var(--gold); margin: 0 0.5rem; }

/* === Page hero (non-homepage) === */
.page-hero {
  padding-top: clamp(7rem, 12vw, 10rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--bone);
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.page-hero .lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 1.5rem 0 2rem 0;
}
.page-hero .hero-ctas { margin-bottom: 0; }

/* === Breadcrumb === */
.breadcrumb {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--deep-orange); }
.breadcrumb .sep { margin: 0 0.5rem; color: var(--gold); }

/* === Featured spotlight (PS25/12) === */
.feature-spotlight {
  background: var(--white);
  border-top: 3px solid var(--orange);
  border-bottom: 1px solid var(--rule);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.feature-spotlight-cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  text-decoration: none;
}
.feature-spotlight-cta:hover { color: var(--ink); }
.feature-spotlight-cta .arrow { margin-left: 0.4em; font-weight: 600; }

/* === Trust marquee === */
.marquee-section {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.marquee-caption {
  text-align: center;
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--ink-2);
  margin-top: 1.5rem;
  font-size: 0.95rem;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 4rem; align-items: center;
  animation: scroll 60s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee-item .badge { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* === Problem / cost cards === */
.problem-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 900px) { .problem-grid { grid-template-columns: 1.2fr 1fr; } }
.problem-visual {
  position: relative; aspect-ratio: 5/4;
  background: var(--white); border: 1px solid var(--rule); border-radius: 4px;
  padding: 2rem;
}
.problem-visual svg { width: 100%; height: 100%; display: block; }
.problem-text h2 { margin-bottom: 1.5rem; }
.problem-text ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.problem-text li {
  padding: 0.85rem 0; border-bottom: 1px solid var(--rule);
  color: var(--ink); font-size: 1.05rem;
}
.problem-text li::before { content: '·  '; color: var(--gold); font-weight: bold; }
.problem-bridge {
  display: inline-block; margin-top: 1.5rem; padding: 0.6rem 1rem;
  border-left: 2px solid var(--gold);
  font-family: Georgia, serif; font-style: italic;
  color: var(--deep-orange);
  font-size: 1.05rem;
}
.cost-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
@media (min-width: 600px) { .cost-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 1000px) { .cost-grid { gap: 2rem; } }
.cost-card {
  background: var(--white); border: 1px solid var(--rule);
  padding: 1.5rem; border-radius: 4px; position: relative;
}
.cost-card .heading {
  font-family: Calibri, sans-serif; font-weight: 700;
  font-size: 1.05rem; color: var(--ink); margin-bottom: 0.25rem;
}
.cost-card .amount {
  font-family: Calibri, sans-serif; font-weight: 700;
  font-size: 1.5rem; color: var(--deep-orange);
  margin-bottom: 1rem; letter-spacing: -0.025em;
}
.cost-card ul { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; color: var(--ink-2); }
.cost-card li { padding: 0.4rem 0; border-bottom: 1px solid var(--rule); }
.cost-card li:last-child { border-bottom: none; }
.cost-total {
  margin-top: 2rem; padding: 1.5rem 2rem;
  background: var(--navy); color: var(--bone);
  border-radius: 4px;
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; justify-content: space-between;
}
.cost-total .label {
  font-family: 'Courier New', Courier, monospace; font-size: 0.75rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft);
}
.cost-total .amount {
  font-family: Calibri, sans-serif; font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--bone);
  letter-spacing: -0.025em;
}

/* === Modules === */
.modules-head { margin-bottom: 3rem; max-width: 740px; }
.modules-head .eyebrow { display: block; margin-bottom: 1rem; }
.modules-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
@media (min-width: 600px)  { .modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .modules-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .modules-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.module-card {
  background: var(--white); border: 1px solid var(--rule);
  padding: 1.5rem; border-radius: 4px;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color 180ms;
  cursor: pointer; display: flex; flex-direction: column; min-height: 180px;
}
.module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.module-icon { width: 32px; height: 32px; color: var(--orange); margin-bottom: 1rem; }
.module-name {
  font-family: Calibri, system-ui, sans-serif;
  font-weight: 600; font-size: 1.0625rem;
  color: var(--ink); margin-bottom: 0.5rem; letter-spacing: -0.01em;
}
.module-desc { font-size: 0.92rem; color: var(--ink-2); line-height: 1.55; flex: 1; margin-bottom: 1rem; }
.status-pill {
  display: inline-flex; align-items: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 999px;
  align-self: flex-start;
}
.status-pill.live { background: var(--orange); color: var(--white); }
.status-pill.roadmap { border: 1px solid var(--gold); color: var(--gold); background: transparent; }
.modules-cta { margin-top: 3rem; text-align: center; }
.modules-cta a {
  font-family: 'Courier New', Courier, monospace; font-size: 0.85rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--deep-orange);
}
.modules-cta a:hover { color: var(--gold); }
.modules-cta a::after { content: ' →'; }

/* === AI loop === */
.ai-loop { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ai-loop-head { margin-bottom: 3rem; max-width: 700px; }
.ai-loop-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .ai-loop-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
.ai-card {
  background: var(--bone); border: 1px solid var(--rule); border-radius: 4px;
  padding: 2rem; box-shadow: var(--shadow-md); position: relative;
}
.ai-card-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.ai-card-diamond { width: 14px; height: 14px; background: var(--gold); transform: rotate(45deg); }
.ai-card h4 {
  font-family: Calibri, system-ui, sans-serif; font-size: 1.25rem; font-weight: 600;
  color: var(--ink); line-height: 1.35; letter-spacing: -0.015em; margin-bottom: 1rem;
}
.ai-card-meta {
  border-top: 1px solid var(--gold); padding-top: 0.65rem;
  font-family: 'Courier New', Courier, monospace; font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem;
}
.ai-confidence { display: flex; height: 8px; border-radius: 2px; overflow: hidden; margin-bottom: 1.5rem; position: relative; }
.ai-confidence .zone-red { flex: 50; background: rgba(178, 61, 43, 0.10); }
.ai-confidence .zone-amber { flex: 30; background: rgba(212, 160, 23, 0.15); }
.ai-confidence .zone-green { flex: 20; background: rgba(47, 125, 50, 0.12); }
.ai-confidence .needle { position: absolute; left: 92%; top: -3px; bottom: -3px; width: 2px; background: var(--gold); }
.ai-reasons-label {
  font-family: Calibri, system-ui, sans-serif; font-weight: 500;
  color: var(--ink-2); font-size: 0.95rem; margin-bottom: 0.75rem;
}
.ai-reasons { list-style: none; padding: 0; margin: 0 0 1.5rem 0; }
.ai-reasons li { font-family: 'Courier New', Courier, monospace; font-size: 0.85rem; color: var(--ink-2); padding: 0.4rem 0; }
.ai-reasons li::before { content: '·  '; color: var(--gold); }
.ai-card-actions {
  border-top: 1px solid var(--rule); padding-top: 1rem;
  display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.ai-card-actions a {
  font-family: 'Courier New', Courier, monospace; font-size: 0.75rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.ai-card-actions a:hover { color: var(--deep-orange); }
.ai-card-actions .spacer { flex: 1; }
.ai-card-actions .approve {
  background: var(--ink); color: var(--white);
  padding: 0.5rem 0.85rem; font-size: 0.78rem; border-radius: 4px; letter-spacing: 0.1em;
}
.ai-callout { margin-bottom: 2rem; }
.ai-callout h5 {
  font-family: 'Courier New', Courier, monospace; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem;
}
.ai-callout p { color: var(--ink); font-size: 1rem; line-height: 1.55; margin: 0; }

/* === Markets === */
.markets-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
@media (min-width: 600px) { .markets-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .markets-grid { grid-template-columns: repeat(3, 1fr); } }
.market-card {
  background: var(--white); border: 1px solid var(--rule);
  padding: 1.5rem; border-radius: 4px;
  transition: all 180ms var(--ease-out); cursor: pointer;
}
.market-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.market-card .region {
  font-family: Calibri, system-ui, sans-serif; font-weight: 600;
  font-size: 1.25rem; color: var(--ink);
  margin-bottom: 0.5rem; letter-spacing: -0.015em;
}
.market-card .regulator {
  font-family: 'Courier New', Courier, monospace; font-size: 0.75rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 1.25rem;
}
.market-card .phase {
  display: inline-flex; align-items: center;
  font-family: 'Courier New', Courier, monospace; font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0; background: transparent; border-radius: 0;
}
.market-card .phase::before {
  margin-right: 0.55rem;
  font-size: 0.85em;
  line-height: 1;
}
.phase.live          { color: var(--orange); }
.phase.live::before  { content: '\25CF'; color: var(--orange); }  /* ● */
.phase.p1, .phase.p2, .phase.p3, .phase.p4 { color: var(--gold); }
.phase.p1::before, .phase.p2::before, .phase.p3::before, .phase.p4::before {
  content: '\25B8'; color: var(--gold);                            /* ▸ */
}
.phase.roadmap         { color: var(--ink-3); }
.phase.roadmap::before { content: '\25CB'; color: var(--ink-3); }  /* ○ */
.market-card .tam {
  font-family: Calibri, sans-serif; font-weight: 700;
  font-size: 1.5rem; color: var(--deep-orange);
  margin-bottom: 0.25rem; letter-spacing: -0.02em;
}
.market-card .tam-context {
  font-family: 'Courier New', Courier, monospace; font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 1rem;
}

/* === Solutions === */
.solutions { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.solutions-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 600px)  { .solutions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .solutions-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .solutions-grid { grid-template-columns: repeat(4, 1fr); } }
.solution-card {
  background: var(--bone); border: 1px solid var(--rule);
  padding: 1.75rem; border-radius: 4px;
  transition: all 180ms var(--ease-out); cursor: pointer;
}
.solution-card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.solution-card .name {
  font-family: Calibri, system-ui, sans-serif; font-weight: 600;
  font-size: 1.25rem; color: var(--ink);
  margin-bottom: 0.75rem; letter-spacing: -0.015em;
}
.solution-card .claim { font-size: 0.92rem; color: var(--ink-2); line-height: 1.55; margin-bottom: 1.25rem; min-height: 3rem; }
.solution-card .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.chip {
  font-family: 'Courier New', Courier, monospace; font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--white); border: 1px solid var(--rule);
  padding: 0.25rem 0.55rem; border-radius: 4px; color: var(--ink-2);
}
.solution-card .explore {
  font-family: 'Courier New', Courier, monospace; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--deep-orange);
}
.solution-card .explore::after { content: ' →'; transition: transform 180ms; display: inline-block; }
.solution-card:hover .explore::after { transform: translateX(3px); }
.solution-card .arr {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: 'Courier New', Courier, monospace; font-size: 0.75rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}

/* === Pricing: starting-price spotlight + module selector === */
.starting-price {
  font-family: Calibri, sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  color: var(--deep-orange);
  line-height: 1;
  margin: 1rem 0 1.25rem;
}
.module-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  margin-top: 2.5rem; margin-bottom: 2.5rem;
}
@media (min-width: 600px)  { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .module-grid { grid-template-columns: repeat(3, 1fr); } }
.module-pick { display: block; cursor: pointer; position: relative; }
.module-pick input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.module-pick-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  transition: border-color 180ms var(--ease-out);
}
.module-pick:hover .module-pick-card { border-color: var(--ink-3); }
.module-pick.is-disabled { cursor: not-allowed; }
.module-pick.is-disabled .module-pick-card {
  background: var(--bone);
}
.module-pick.is-disabled:hover .module-pick-card {
  border-color: var(--rule);
}
.module-pick input:focus-visible ~ .module-pick-card {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.module-pick input:checked ~ .module-pick-card {
  border-color: var(--orange);
  background: rgba(244, 123, 32, 0.06);
}
[data-theme="dark"] .module-pick input:checked ~ .module-pick-card {
  background: rgba(255, 139, 51, 0.10);
}
.module-pick-card h4 {
  font-family: Calibri, sans-serif; font-weight: 700;
  font-size: 1.05rem; color: var(--ink);
  margin: 0 0 0.4rem; line-height: 1.3; letter-spacing: -0.01em;
}
.module-pick-card p {
  font-size: 0.88rem; color: var(--ink-2);
  line-height: 1.55; margin: 0;
}
.module-cta { text-align: center; margin-top: 1rem; }

/* === ROI band === */
.roi-band {
  background: var(--navy); color: var(--bone);
  padding: clamp(3rem, 5vw, 4rem) 0;
  margin-top: 4rem; border-radius: 4px;
}
.roi-head { text-align: center; margin-bottom: 2.5rem; padding: 0 clamp(1.5rem, 4vw, 3rem); }
.roi-head .eyebrow { color: var(--orange); display: block; margin-bottom: 1rem; }
.roi-head h3 { color: var(--bone); font-size: clamp(1.5rem, 2.5vw, 2rem); font-family: Calibri, sans-serif; font-weight: 700; letter-spacing: -0.025em; }
.roi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; padding: 0 clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 900px) { .roi-grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }
.roi-stat { text-align: center; }
.roi-stat .num {
  font-family: Calibri, sans-serif; font-weight: 800;
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--gold-soft); letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 0.5rem;
}
.roi-stat .label { font-family: Calibri, sans-serif; font-size: 0.88rem; color: var(--slate); line-height: 1.45; }

/* === Roadmap card .phase: roadmap usage on the homepage was removed
   but the bare .phase rule below is intentionally kept because
   .market-card .phase inherits its border-related properties via cascade.
   Inner roadmap rules (.phase .num, .phase h4, .phase .scope, .phase ul,
   .phase li, .phase .milestone) were dead and have been removed. === */
.phase {
  background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--orange);
  padding: 1.5rem; border-radius: 4px; display: flex; flex-direction: column;
}

/* === Why now === */
.why-now { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 700px)  { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card { background: var(--bone); border: 1px solid var(--rule); padding: 1.5rem; border-radius: 4px; }
.why-card .tag { font-family: 'Courier New', Courier, monospace; font-size: 0.68rem; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 0.75rem; }
.why-card h4 { font-family: Calibri, sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.5rem; line-height: 1.3; letter-spacing: -0.01em; }
.why-card p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.55; margin: 0; }

/* === Stats band === */
.stats-band { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(3rem, 5vw, 4rem) 0; }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 600px) { .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }
.stats-grid--2col { max-width: 720px; margin-left: auto; margin-right: auto; }
@media (min-width: 600px) {
  .stats-grid.stats-grid--2col { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .stats-grid.stats-grid--2col { grid-template-columns: repeat(2, 1fr); }
}
.stat { text-align: left; padding-left: 1.5rem; border-left: 2px solid var(--gold); }
.stat-number {
  font-family: Calibri, sans-serif; font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.04em; color: var(--deep-orange);
  line-height: 1; margin-bottom: 0.5rem;
}
.stat-label { font-family: Calibri, sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--ink); margin-bottom: 0.35rem; }
.stat-context { font-family: 'Courier New', Courier, monospace; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-2); }
.stats-more {
  display: block;
  margin-top: 2rem;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}
.stats-more:hover { color: var(--ink); }
.stats-more .arrow { color: var(--deep-orange); margin-left: 0.4em; font-weight: 600; }
.stats-methodology {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.8;
}

/* === Moat === */
.moat-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 800px) { .moat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .moat-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }
.moat-item { padding: 1.5rem; border-left: 2px solid var(--gold); }
.moat-num { font-family: 'Courier New', Courier, monospace; font-size: 0.7rem; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 0.75rem; }
.moat-item h4 {
  font-family: Calibri, sans-serif; font-weight: 700; font-size: 1.05rem;
  color: var(--ink); margin-bottom: 0.5rem; line-height: 1.3; letter-spacing: -0.01em;
}
.moat-item p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.55; margin: 0; }

/* === 5-step journey (non-interactive description cards) === */
.next-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; margin-bottom: 2.5rem; }
@media (min-width: 700px)  { .next-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .next-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }
@media (min-width: 1100px) { .next-grid.next-grid--3col { grid-template-columns: repeat(3, 1fr); } }
.next-card {
  background: var(--white); border: 1px solid var(--rule);
  padding: 1.75rem 1.5rem; border-radius: 4px;
  display: flex; flex-direction: column;
}
.next-card .step { font-family: Calibri, sans-serif; font-weight: 800; font-size: 2rem; color: var(--deep-orange); line-height: 1; margin-bottom: 1rem; letter-spacing: -0.03em; }
.next-card h4 { font-family: Calibri, sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.5rem; line-height: 1.3; letter-spacing: -0.01em; }
.next-card p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.55; margin: 0; }

/* === CTA bands === */
.cta-band { display: grid; grid-template-columns: 1fr; padding: 0; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr 1fr; } }
.cta-half {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
}
.cta-half.left { background: var(--bone); }
.cta-half.right { background: var(--navy); color: var(--bone); }
.cta-half.right h2 { color: var(--bone); }
.cta-half h2 { margin-bottom: 1rem; max-width: 20ch; }
.cta-half p { font-size: 1.05rem; max-width: 32ch; margin-bottom: 2rem; }
.cta-half.left p { color: var(--ink-2); }
.cta-half.right p { color: var(--slate); }
.cta-half.right .eyebrow { color: var(--orange); margin-bottom: 1rem; }
.cta-half.left .eyebrow { margin-bottom: 1rem; }

/* === Footer === */
footer { background: var(--bone); border-top: 1px solid var(--rule); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(5, 1fr); } }
.footer-col h6 {
  font-family: 'Courier New', Courier, monospace; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 1rem 0;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 0.35rem 0; }
.footer-col a { color: var(--ink); font-size: 0.92rem; transition: color 180ms; }
.footer-col a:hover { color: var(--deep-orange); }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem;
}
.footer-brand .name { font-family: Georgia, serif; font-weight: 600; color: var(--orange); font-size: 1.5rem; margin-bottom: 0.25rem; }
.footer-brand .corp { font-family: 'Courier New', Courier, monospace; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--ink-3); line-height: 1.7; }
.footer-voice { text-align: right; }
.footer-voice .tag { font-family: Georgia, serif; font-style: italic; font-weight: 500; color: var(--orange); font-size: 1.1rem; margin-bottom: 0.25rem; }
.footer-voice .sub { font-family: 'Courier New', Courier, monospace; font-size: 0.78rem; letter-spacing: 0.18em; color: var(--ink-2); }
.footer-legal {
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-family: 'Courier New', Courier, monospace; font-size: 0.7rem;
  letter-spacing: 0.15em; color: var(--ink-3); text-transform: uppercase;
}
.footer-legal a:hover { color: var(--deep-orange); }

/* === Leader grid (forces 2x2 at tablet/desktop instead of auto-fit 3+1) === */
.leader-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 700px) { .leader-grid { grid-template-columns: repeat(2, 1fr); } }

/* === Product page: focus chips, selector chips, feature results, outcome cards === */
/* Focus-style card primitives (used by Find Your Features selectable cards) */
.focus-col-head {
  display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 1.25rem; padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--orange);
}
.focus-col-head h3 {
  font-family: Georgia, serif; font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  color: var(--ink); margin: 0; letter-spacing: -0.01em;
}
.focus-col-head .focus-count {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--deep-orange);
}
.focus-code {
  font-family: 'Courier New', Courier, monospace; font-weight: 700;
  font-size: 0.88rem; letter-spacing: 0.06em;
  color: var(--deep-orange);
  background: var(--bone);
  border: 1px solid var(--rule); border-radius: 5px;
  padding: 0.6rem 0.4rem;
  text-align: center; line-height: 1;
  align-self: center;
  min-width: 56px;
}
.focus-name {
  font-family: Calibri, sans-serif; font-weight: 700;
  font-size: 1.06rem; color: var(--ink); line-height: 1.3;
  letter-spacing: -0.005em;
  word-wrap: break-word; overflow-wrap: break-word;
}
.focus-sub {
  font-family: Calibri, sans-serif; font-weight: 400;
  font-size: 0.9rem; color: var(--ink-2); line-height: 1.45;
  margin-top: 0.3rem;
  word-wrap: break-word; overflow-wrap: break-word;
}
@media (max-width: 420px) {
  .focus-code { font-size: 0.8rem; padding: 0.5rem 0.3rem; min-width: 48px; }
  .focus-name { font-size: 1rem; }
  .focus-sub { font-size: 0.85rem; }
}

.selector-group { margin-bottom: 1.75rem; }
.selector-label {
  display: block;
  font-family: 'Courier New', Courier, monospace; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 0.75rem;
}
.selector-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-pick { display: inline-block; cursor: pointer; user-select: none; position: relative; }
.chip-pick input {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.chip-pick span {
  display: inline-block;
  padding: 0.55rem 1.05rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--rule);
  color: var(--ink); font-family: Calibri, sans-serif; font-size: 0.95rem;
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.chip-pick:hover span { border-color: var(--ink-3); }
.chip-pick input:focus-visible ~ span {
  outline: 2px solid var(--orange); outline-offset: 2px;
}
.chip-pick input:checked ~ span {
  border-color: var(--orange);
  background: rgba(244, 123, 32, 0.06);
}
[data-theme="dark"] .chip-pick input:checked ~ span {
  background: rgba(255, 139, 51, 0.10);
}

/* Focus-style selectable card (Find Your Features) */
.focus-pick-list {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;     /* equal-height rows */
}
@media (min-width: 700px)  { .focus-pick-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .focus-pick-list { grid-template-columns: 1fr 1fr 1fr; } }
.focus-pick {
  display: block; cursor: pointer; user-select: none; position: relative;
  min-width: 0; height: 100%;
}
.focus-pick input {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.focus-pick-card {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 24px; gap: 1.1rem;
  align-items: center;
  padding: 1.05rem 1.25rem;
  background: var(--white); border: 1px solid var(--rule); border-radius: 6px;
  height: 100%;
  transition: border-color 180ms var(--ease-out),
              background 180ms var(--ease-out),
              box-shadow 180ms var(--ease-out);
}
.focus-pick:hover .focus-pick-card { border-color: var(--orange); box-shadow: var(--shadow-sm); }
@media (hover: none) { .focus-pick:hover .focus-pick-card { box-shadow: none; } }
.focus-pick input:focus-visible ~ .focus-pick-card {
  outline: 2px solid var(--orange); outline-offset: 2px;
}
.focus-pick input:checked ~ .focus-pick-card {
  border-color: var(--orange);
  background: rgba(244, 123, 32, 0.06);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .focus-pick input:checked ~ .focus-pick-card {
  background: rgba(255, 139, 51, 0.10);
}
.focus-pick-tick {
  width: 22px; height: 22px;
  border: 1.5px solid var(--rule); border-radius: 5px;
  background: var(--bone);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Courier New', Courier, monospace; font-weight: 700;
  font-size: 0.95rem; line-height: 1; color: transparent;
  transition: all 180ms var(--ease-out);
  flex-shrink: 0;
}
.focus-pick input:checked ~ .focus-pick-card .focus-pick-tick {
  background: var(--orange); border-color: var(--orange); color: var(--white);
}
@media (max-width: 420px) {
  .focus-pick-card { grid-template-columns: 48px minmax(0, 1fr) 22px; gap: 0.9rem; padding: 0.9rem 1rem; }
  .focus-pick-tick { width: 20px; height: 20px; }
}

.feature-results { margin-top: 2.5rem; }
.feature-empty {
  padding: 2.5rem 1.5rem; text-align: center;
  background: var(--bone); border: 1px dashed var(--rule); border-radius: 4px;
  color: var(--ink-2); font-size: 0.95rem; line-height: 1.5;
}
.feature-summary {
  font-family: 'Courier New', Courier, monospace; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 1.5rem;
}
.feature-section { margin-top: 1.75rem; }
.feature-section-head {
  font-family: 'Courier New', Courier, monospace; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--rule);
}
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 700px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: var(--bone); border: 1px solid var(--rule);
  border-radius: 4px; padding: 1.25rem 1.5rem;
}
.feature-name {
  font-family: Calibri, sans-serif; font-weight: 700;
  font-size: 1rem; color: var(--ink);
  margin-bottom: 0.5rem; line-height: 1.35; letter-spacing: -0.01em;
}
.dev-badge {
  display: inline-block; vertical-align: middle; margin-left: 0.4rem;
  font-family: 'Courier New', Courier, monospace; font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--rule); padding: 0.15rem 0.45rem; border-radius: 3px;
}
.feature-unique {
  font-size: 0.88rem; color: var(--ink-2);
  line-height: 1.55; margin: 0;
}

.outcome-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 700px) { .outcome-grid { grid-template-columns: repeat(3, 1fr); } }
.outcome-card {
  background: var(--white); border: 1px solid var(--rule); border-radius: 4px;
  padding: 1.75rem; display: flex; flex-direction: column;
  transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.outcome-card:hover {
  border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.outcome-card h4 {
  font-family: Calibri, sans-serif; font-weight: 700;
  font-size: 1.1rem; color: var(--ink);
  margin: 0 0 0.6rem; line-height: 1.3; letter-spacing: -0.015em;
}
.outcome-card p {
  font-size: 0.92rem; color: var(--ink-2);
  line-height: 1.55; margin: 0 0 1.25rem; flex: 1;
}
.outcome-card .cta-arrow {
  font-family: 'Courier New', Courier, monospace; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange);
}

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

/* === Mobile sticky CTA === */
.mobile-sticky {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(251, 248, 242, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule);
  padding: 0.75rem 1rem; display: flex; justify-content: center;
}
.mobile-sticky .btn { width: 100%; max-width: 380px; justify-content: center; }
@media (min-width: 768px) { .mobile-sticky { display: none; } }

/* =============================================================================
   ADDITIONS for sub-pages
   ============================================================================= */

/* === FAQ accordion === */
.faq-list { max-width: 800px; margin: 2.5rem auto 0; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1.25rem 0; cursor: pointer;
  background: none; border: none;
  text-align: left;
  font-family: Calibri, sans-serif; font-weight: 600; font-size: 1.05rem;
  color: var(--ink); letter-spacing: -0.005em;
}
.faq-q .chev { transition: transform 240ms var(--ease-out); color: var(--gold); font-weight: 400; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 0 1.5rem 0;
  font-size: 0.95rem; color: var(--ink-2); line-height: 1.65;
  max-width: 70ch;
}
.faq-item.open .faq-a { display: block; }

/* === Form === */
.form-page-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start;
}
@media (min-width: 900px) { .form-page-grid { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; } }
.form-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 4px; padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-row { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 0.5rem;
}
.form-label .req { color: var(--deep-orange); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: Calibri, sans-serif; font-size: 1rem;
  color: var(--ink); background: var(--bone);
  border: 1px solid var(--rule); border-radius: 4px;
  transition: border-color 180ms var(--ease-out), background 180ms;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--deep-orange); background: var(--white);
}
.form-textarea { resize: vertical; min-height: 5rem; }
.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B6258' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}
[data-theme="dark"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A6A095' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.form-select::-ms-expand { display: none; }
.form-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }
.form-disclaimer {
  margin-top: 1.5rem;
  font-family: 'Courier New', Courier, monospace; font-size: 0.7rem;
  letter-spacing: 0.1em; color: var(--ink-3); line-height: 1.6;
}
.form-side {
  display: flex; flex-direction: column; gap: 2rem;
}
.form-side-card {
  background: var(--bone); border: 1px solid var(--rule);
  border-radius: 4px; padding: 1.5rem;
}
.form-side-card h4 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.form-side-card ul { list-style: none; padding: 0; margin: 0; }
.form-side-card li {
  padding: 0.55rem 0; border-bottom: 1px solid var(--rule);
  color: var(--ink); font-size: 0.92rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.form-side-card li:last-child { border-bottom: none; }
.form-side-card li .val {
  font-family: 'Courier New', Courier, monospace; font-size: 0.78rem;
  color: var(--deep-orange); letter-spacing: 0.08em;
}
.form-side-quote {
  background: var(--navy); color: var(--bone);
  padding: 1.5rem; border-radius: 4px;
}
.form-side-quote .q {
  font-family: Calibri, sans-serif; font-style: italic;
  font-size: 1.05rem; line-height: 1.55;
  color: var(--bone); margin-bottom: 1rem;
}
.form-side-quote .who {
  font-family: 'Courier New', Courier, monospace; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft);
}

/* === Lifecycle (for /product) === */
.lifecycle-track {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 700px) { .lifecycle-track { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .lifecycle-track { grid-template-columns: repeat(4, 1fr); } }
.lifecycle-step {
  background: var(--white); border: 1px solid var(--rule);
  padding: 1.5rem; border-radius: 4px;
  position: relative;
}
.lifecycle-step .num {
  font-family: Calibri, sans-serif; font-weight: 800;
  font-size: 1.75rem; color: var(--deep-orange);
  line-height: 1; margin-bottom: 1rem;
}
.lifecycle-step h4 {
  font-family: Calibri, sans-serif; font-weight: 700;
  font-size: 1.1rem; color: var(--ink);
  margin-bottom: 0.5rem; line-height: 1.3; letter-spacing: -0.01em;
}
.lifecycle-step p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.55; margin: 0; }

/* === Generic page section helpers === */
.section-head { margin-bottom: 3rem; max-width: 720px; }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: 1rem; color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; }

/* === EMI-specific PS25/12 module grid === */
.ps2512-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.85rem;
  margin-top: 2rem;
}
@media (min-width: 600px) { .ps2512-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ps2512-grid { grid-template-columns: repeat(3, 1fr); } }
.ps-tile {
  background: var(--white); border: 1px solid var(--rule);
  border-left: 3px solid var(--orange);
  padding: 1.1rem 1.25rem; border-radius: 4px;
  display: flex; align-items: flex-start; gap: 0.85rem;
}
.ps-tile .check { color: var(--orange); font-weight: 700; flex-shrink: 0; }
.ps-tile .label { font-size: 0.95rem; color: var(--ink); font-weight: 500; line-height: 1.35; }

/* =============================================================================
   Mega menu (desktop dropdowns) + mobile accordion
   ============================================================================= */
.nav-links { gap: 1.75rem; }
.nav-links li { position: relative; display: flex; align-items: center; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.7rem 0;     /* small vertical hover-target area */
  line-height: 1;
}
.nav-links li.has-mega > a .caret {
  font-size: 0.65rem; color: var(--ink-3);
  transition: transform 200ms var(--ease-out), color 200ms;
}
.nav-links li.has-mega:hover > a .caret,
.nav-links li.has-mega:focus-within > a .caret {
  transform: translateY(1px) rotate(180deg);
  color: var(--deep-orange);
}

.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: grid; gap: 1.5rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 200ms;
  z-index: 200;
}
/* Invisible hover bridge so the dropdown survives the gap between trigger and panel */
.mega::before {
  content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.mega.mega-1col { grid-template-columns: 1fr; min-width: 280px; }
.mega.mega-2col { grid-template-columns: repeat(2, 1fr); min-width: 520px; }
.mega.mega-3col { grid-template-columns: repeat(3, 1fr); min-width: 700px; }

.nav-links li.has-mega:hover > .mega,
.nav-links li.has-mega:focus-within > .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-col h6 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.65rem 0;
}
.mega-col a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  transition: background 160ms var(--ease-out);
}
.mega-col a + a { margin-top: 0.1rem; }
.mega-col a:hover { background: var(--bone); }
.mega-col a strong {
  display: block;
  font-size: 0.92rem; font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 0.15rem;
}
.mega-col a span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-2);
  line-height: 1.4;
}
.mega-col a:hover strong { color: var(--deep-orange); }

/* Center all top-bar items vertically in the 72px header */
.header-inner { align-items: center; }
.nav-links { align-items: center; }

/* Mobile menu accordion */
.mobile-menu details {
  border-bottom: 1px solid var(--rule);
}
.mobile-menu details > summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}
.mobile-menu details > summary::-webkit-details-marker { display: none; }
.mobile-menu details > summary::after {
  content: '+';
  font-family: Calibri, sans-serif;
  font-size: 1.6rem; font-weight: 300;
  color: var(--deep-orange);
  transition: transform 200ms var(--ease-out);
  line-height: 1;
}
.mobile-menu details[open] > summary::after { content: '−'; }
.mobile-menu details a {
  font-family: Calibri, sans-serif;
  font-size: 0.98rem; font-weight: 500;
  padding: 0.55rem 0 0.55rem 1rem;
  color: var(--ink-2);
  border-bottom: none;
}
.mobile-menu details a:last-of-type { padding-bottom: 1rem; }
.mobile-menu > a { /* non-accordion top-level links */
  display: block; padding: 1rem 0;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}

/* =============================================================================
   Dark mode
   - Token-level flip via [data-theme="dark"]
   - Brand orange/gold tweaked for legibility on dark; navy panels stay navy
   ============================================================================= */
[data-theme="dark"] {
  --bone:        #0E1014;
  --white:       #16181D;
  --ink:         #EDE9DF;
  --ink-2:       #A6A095;
  --ink-3:       #6E685E;
  --rule:        #2A2C32;
  --rule-strong: #D4A017;
  --orange:      #FF8B33;
  --deep-orange: #F47B20;
  --gold:        #E0B62F;
  --gold-soft:   #E8CC8A;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 24px -8px rgba(0,0,0,0.55);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,0.65);
}

/* Sticky-header blur background needs an explicit dark equivalent
   (its rgba() can't reference a token). */
[data-theme="dark"] .header.scrolled {
  background: rgba(14, 16, 20, 0.88);
  border-bottom-color: var(--rule);
}

/* Sections that hard-code white panels via inline style should keep working
   because they reference var(--white). For any place using rgba(white) etc. */
[data-theme="dark"] body { color-scheme: dark; }
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background-color: var(--bone);
  color: var(--ink);
  border-color: var(--rule);
}

/* Theme toggle button */
.theme-toggle {
  background: transparent; border: none;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink-2);
  border-radius: 6px;
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out);
  padding: 0;
}
.theme-toggle:hover { color: var(--deep-orange); background: rgba(244,123,32,0.08); }
.theme-toggle .ti { width: 18px; height: 18px; display: block; }
.theme-toggle .ti-moon { display: none; }
[data-theme="dark"] .theme-toggle .ti-sun { display: none; }
[data-theme="dark"] .theme-toggle .ti-moon { display: block; }

/* The orange brand-mark wordmark gets a touch brighter on dark for legibility */
[data-theme="dark"] .nav-brand { color: #FFFFFF; }
[data-theme="dark"] .footer-brand .name { color: #FFFFFF; }
[data-theme="dark"] .brand-ai { color: var(--orange); }

/* Mega-menu surface uses var(--white) which flips, but the hover bg --bone
   would invert oddly (bone is now the page bg). Lift hover one step. */
[data-theme="dark"] .mega-col a:hover { background: rgba(255,255,255,0.04); }

/* =============================================================================
   Dark mode — text on permanently-dark backgrounds (navy CTAs, strategic
   council, trust CTAs, etc.) must stay light. In light mode --bone is cream
   and reads fine on --navy; in dark mode --bone flips to the deep page bg,
   which would make headings invisible on navy. Override here.
   ============================================================================= */
[data-theme="dark"] .cta-half.right,
[data-theme="dark"] .cta-half.right h1,
[data-theme="dark"] .cta-half.right h2,
[data-theme="dark"] .cta-half.right h3,
[data-theme="dark"] .cta-half.right h4,
[data-theme="dark"] [style*="background:var(--navy)"],
[data-theme="dark"] [style*="background: var(--navy)"],
[data-theme="dark"] [style*="background:var(--navy)"] h1,
[data-theme="dark"] [style*="background:var(--navy)"] h2,
[data-theme="dark"] [style*="background:var(--navy)"] h3,
[data-theme="dark"] [style*="background:var(--navy)"] h4,
[data-theme="dark"] [style*="background:var(--navy-deep)"],
[data-theme="dark"] [style*="background:var(--navy-deep)"] h1,
[data-theme="dark"] [style*="background:var(--navy-deep)"] h2,
[data-theme="dark"] [style*="background:var(--navy-deep)"] h3,
[data-theme="dark"] [style*="background:var(--navy-deep)"] h4 {
  color: #FBF8F2 !important;
}

/* =============================================================================
   Mobile header fixes
   - Prevent the brand wordmark from wrapping to a second line
   - Hide the "Book a demo" button below tablet width (mobile menu has it)
   - Trim brand font on very narrow phones
   ============================================================================= */
.nav-brand { white-space: nowrap; }
.nav-brand span { white-space: nowrap; }
.nav-cta .btn-primary { white-space: nowrap; }

@media (max-width: 767px) {
  .nav-cta .btn-primary { display: none; }
  .nav-cta { gap: 0.4rem; }
}
@media (max-width: 380px) {
  .nav-brand { font-size: 1rem; }
  .nav-brand svg { width: 30px; height: 30px; }
}

/* =============================================================================
   Belt-and-braces dark-mode text colours
   These restate what the variable cascade should already do, but explicit
   rules make the fix survive aggressive browser caching and any inline
   colour overrides.
   ============================================================================= */
[data-theme="dark"] body,
[data-theme="dark"] .page-hero h1,
[data-theme="dark"] section h1,
[data-theme="dark"] section h2,
[data-theme="dark"] section h3,
[data-theme="dark"] section h4 {
  color: var(--ink);
}
[data-theme="dark"] .page-hero { background: var(--bone); }
[data-theme="dark"] .page-hero .lede,
[data-theme="dark"] section p { color: var(--ink-2); }

/* In dark mode, any element with an inline color:var(--bone) is intended as
   light text on a dark surface (because in light mode --bone is cream and is
   used as the text colour against navy panels). When --bone flips dark in
   dark mode, those texts go invisible. Force them back to a fixed light. */
[data-theme="dark"] [style*="color:var(--bone)"],
[data-theme="dark"] [style*="color: var(--bone)"] {
  color: #FBF8F2 !important;
}

/* Dark mode: class-based rules that use color:var(--bone) for text on navy
   need explicit overrides since they can't be reached by the inline-style rule.
   These are the navy-panel components scattered across the design system. */
[data-theme="dark"] .roi-band,
[data-theme="dark"] .roi-head h3,
[data-theme="dark"] .cost-total,
[data-theme="dark"] .cost-total .amount,
[data-theme="dark"] .form-side-quote,
[data-theme="dark"] .form-side-quote .q {
  color: #FBF8F2 !important;
}

/* =============================================================================
   Global teams block (contact.html — "Our teams" city cards)
   ============================================================================= */
.teams-block { margin-top: 1.75rem; }
.teams-eyebrow {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--deep-orange);
  padding-bottom: 0.6rem; margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 0.6rem;
}
.teams-eyebrow::after {
  content: ""; flex: 1; height: 1px; background: transparent;
}
.teams-grid {
  display: grid; gap: 0.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) { .teams-grid { grid-template-columns: 1fr 1fr; } }
.team-city {
  position: relative;
  background: var(--white); border: 1px solid var(--rule); border-radius: 6px;
  padding: 0.85rem 1rem 0.85rem 1.15rem;
  transition: border-color 180ms var(--ease-out),
              transform 180ms var(--ease-out),
              box-shadow 180ms var(--ease-out);
}
.team-city::before {
  content: ""; position: absolute;
  left: 0.5rem; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.15);
}
[data-theme="dark"] .team-city::before {
  box-shadow: 0 0 0 3px rgba(255, 139, 51, 0.18);
}
.team-city:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
@media (hover: none) { .team-city:hover { transform: none; } }
.team-city .city {
  font-family: Calibri, sans-serif; font-weight: 700;
  font-size: 1.02rem; color: var(--ink); line-height: 1.2;
  letter-spacing: -0.005em;
  margin-left: 0.5rem;
}
.team-city .country {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); margin-top: 0.35rem; margin-left: 0.5rem;
}

/* =============================================================================
   Stack-builder selectable feature cards (pricing.html Build Your Stack)
   ============================================================================= */
.stack-summary {
  font-family: 'Courier New', Courier, monospace; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2);
  margin: 2rem 0 1rem 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
}
.stack-summary .stack-counts strong { color: var(--deep-orange); font-weight: 700; }
.stack-bulk-actions {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.stack-bulk-actions button {
  font-family: 'Courier New', Courier, monospace; font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--white); border: 1px solid var(--rule); border-radius: 4px;
  padding: 0.45rem 0.7rem; cursor: pointer;
  color: var(--ink-2);
  transition: border-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.stack-bulk-actions button:hover { border-color: var(--orange); color: var(--deep-orange); }

.stack-section { margin-top: 1.75rem; }
.stack-section-head {
  font-family: 'Courier New', Courier, monospace; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.stack-section-head .stack-section-count {
  font-family: 'Courier New', Courier, monospace; font-size: 0.7rem;
  letter-spacing: 0.18em; color: var(--ink-3); font-weight: 500;
}
.stack-grid {
  display: grid; gap: 0.75rem; grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
}
@media (min-width: 700px)  { .stack-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .stack-grid { grid-template-columns: 1fr 1fr 1fr; } }

.stack-feature {
  display: block; cursor: pointer; user-select: none; position: relative;
  min-width: 0; height: 100%;
}
.stack-feature input {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.stack-feature-card {
  display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 1rem;
  align-items: start;
  padding: 1.05rem 1.25rem;
  background: var(--white); border: 1px solid var(--rule); border-radius: 6px;
  height: 100%;
  transition: border-color 180ms var(--ease-out),
              background 180ms var(--ease-out),
              box-shadow 180ms var(--ease-out);
}
.stack-feature:hover .stack-feature-card {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
}
@media (hover: none) { .stack-feature:hover .stack-feature-card { box-shadow: none; } }
.stack-feature input:focus-visible ~ .stack-feature-card {
  outline: 2px solid var(--orange); outline-offset: 2px;
}
.stack-feature input:checked ~ .stack-feature-card {
  border-color: var(--orange);
  background: rgba(244, 123, 32, 0.06);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .stack-feature input:checked ~ .stack-feature-card {
  background: rgba(255, 139, 51, 0.10);
}
.stack-feature-tick {
  width: 22px; height: 22px;
  border: 1.5px solid var(--rule); border-radius: 5px;
  background: var(--bone);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Courier New', Courier, monospace; font-weight: 700;
  font-size: 0.95rem; line-height: 1; color: transparent;
  transition: all 180ms var(--ease-out);
  flex-shrink: 0; margin-top: 0.2rem;
}
.stack-feature input:checked ~ .stack-feature-card .stack-feature-tick {
  background: var(--orange); border-color: var(--orange); color: var(--white);
}
.stack-feature-name {
  font-family: Calibri, sans-serif; font-weight: 700;
  font-size: 1rem; color: var(--ink);
  margin-bottom: 0.45rem; line-height: 1.35; letter-spacing: -0.005em;
  word-wrap: break-word; overflow-wrap: break-word;
}
.stack-feature-desc {
  font-family: Calibri, sans-serif;
  font-size: 0.9rem; color: var(--ink-2);
  line-height: 1.5; margin: 0;
  word-wrap: break-word; overflow-wrap: break-word;
}
.stack-feature.is-disabled { opacity: 0.55; cursor: not-allowed; }
.stack-feature.is-disabled .stack-feature-card { background: var(--bone); }
.stack-feature.is-disabled:hover .stack-feature-card {
  border-color: var(--rule); box-shadow: none; transform: none;
}
.stack-feature.is-disabled .stack-feature-tick { display: none; }

@media (max-width: 420px) {
  .stack-feature-card { padding: 0.95rem 1rem; gap: 0.85rem; }
  .stack-feature-name { font-size: 0.95rem; }
  .stack-feature-desc { font-size: 0.85rem; }
}

/* =============================================================================
   Tech stack comparison table (.compare)
   Used on platform-architecture.html — Layer / Primary / Purpose
   ============================================================================= */
.compare-wrap {
  margin-top: 2.5rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;            /* contains border-radius on first/last rows */
}
@media (max-width: 700px) {
  .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-family: Calibri, sans-serif;
}
.compare thead th {
  text-align: left;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--deep-orange);
  padding: 1rem 1.25rem 0.85rem;
  background: var(--bone);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.compare tbody td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
  vertical-align: top;
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr:not(.group-row):hover td { background: rgba(244, 123, 32, 0.04); }
[data-theme="dark"] .compare tbody tr:not(.group-row):hover td { background: rgba(255, 139, 51, 0.06); }

/* First column (Layer label) gets a touch of weight */
.compare tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
/* Second column (Primary tech) reads as the implementation */
.compare tbody td:nth-child(2) {
  color: var(--ink);
}
/* Third column (Purpose) is the supporting copy */
.compare tbody td:nth-child(3) {
  color: var(--ink-2);
}

/* Group separator row — section header inside the table */
.compare tr.group-row td {
  background: var(--bone);
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--deep-orange);
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}
.compare tbody tr.group-row:first-child td { border-top: none; }
[data-theme="dark"] .compare tr.group-row td,
[data-theme="dark"] .compare thead th {
  background: rgba(255, 139, 51, 0.05);
}

/* Mobile: a touch tighter, still readable */
@media (max-width: 700px) {
  .compare { min-width: 640px; }   /* forces the wrap to scroll horizontally */
  .compare thead th,
  .compare tbody td,
  .compare tr.group-row td { padding-left: 1rem; padding-right: 1rem; }
  .compare tbody td { font-size: 0.9rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
}
