/* =====================================================================
   Midnight Synapse — dark-first theme layered over styles.css
   Dark is the default; [data-theme="light"] keeps the original light palette.
   ===================================================================== */

:root {
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 77.5rem;
  --radius: 12px;
  --radius-lg: 16px;
  /* light-theme values for the new tokens */
  --glass: rgba(255, 255, 255, 0.85);
  --elev: #ffffff;
  --glass-edge: rgba(22, 64, 143, 0.25);
  --btn-bg: var(--brand);
  --btn-fg: var(--on-brand);
  --btn-glow: none;
  --card-glow: none;
  --grad-text: linear-gradient(90deg, #16408F, #0070F3);
  --accent2: #0070F3;
  --teal: #146C2E;
  --page-bg: var(--paper);
  --header-bg: rgba(246, 248, 252, 0.85);
}

:root:not([data-theme="light"]) {
  color-scheme: dark;
  --paper: #05070B;
  --surface: #0D1322;
  --ink: #F4F7FC;
  --muted: #8A99B5;
  --brand: #00F0FF;
  --on-brand: #05070B;
  --brand-soft: rgba(0, 240, 255, 0.1);
  --rule: rgba(255, 255, 255, 0.09);
  --field: #6B7C9C;
  --focus: #FFD166;
  --error: #FF9C8F;
  --ok: #33E7C3;
  --glass: rgba(13, 19, 34, 0.72);
  --elev: #141C30;
  --glass-edge: rgba(0, 240, 255, 0.4);
  --btn-bg: linear-gradient(135deg, #00F0FF 0%, #19B4FF 100%);
  --btn-fg: #05070B;
  --btn-glow: 0 0 22px rgba(0, 240, 255, 0.35);
  --card-glow: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
  --grad-text: linear-gradient(90deg, #00F0FF 0%, #7DB8FF 100%);
  --accent2: #0070F3;
  --teal: #33E7C3;
  --header-bg: rgba(5, 7, 11, 0.72);
}
:root:not([data-theme="light"]) body { color-scheme: dark; }

body {
  font-family: var(--font-body);
  background: var(--paper);
}
:root:not([data-theme="light"]) body {
  background:
    radial-gradient(70rem 32rem at 82% -6rem, rgba(0, 240, 255, 0.10), transparent 70%),
    radial-gradient(50rem 30rem at -10% 18rem, rgba(0, 112, 243, 0.08), transparent 70%),
    var(--paper);
  background-attachment: scroll;
}
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 700; }
h2 { font-weight: 650; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (forced-colors: active) { .grad-text { color: CanvasText; background: none; } }

/* ---------- Buttons: pills ---------- */
.btn {
  border-radius: 999px;
  border-width: 1.5px;
  font-family: var(--font-display);
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, background-color 0.15s, color 0.15s;
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: transparent;
  box-shadow: var(--btn-glow);
}
.btn-primary:hover {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: transparent;
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.45);
}
:root[data-theme="light"] .btn-primary:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn-quiet {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-quiet:hover { background: rgba(0, 240, 255, 0.06); border-color: rgba(0, 240, 255, 0.6); color: var(--brand); }
:root[data-theme="light"] .btn-quiet { background: transparent; color: var(--brand); border-color: var(--brand); }
:root[data-theme="light"] .btn-quiet:hover { background: var(--brand-soft); color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
.site-nav ul {
  gap: 0.15rem;
  padding: 0.25rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.site-nav a { border-radius: 999px; padding: 0.5rem 0.95rem; font-size: 0.9375rem; font-weight: 500; }
.site-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.site-nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none;
}
.icon-btn { border-radius: 999px; }
@media (max-width: 60rem) {
  .site-nav ul { border-radius: var(--radius-lg); padding: 0.4rem; }
  .site-nav a { border-radius: 10px; }
}

/* ---------- Shared glass surfaces ---------- */
.glass, .ncard, .benefit-card, .module-card, .tier, .form-card, .callout, .detail, .console, .terminal-card, .chat-card, .info-card {
  background: var(--glass);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--card-glow);
}
.ncard, .benefit-card, .module-card, .tier, .form-card, .console, .terminal-card, .chat-card, .info-card, .glass { position: relative; }
.ncard::before, .benefit-card::before, .module-card::before, .console::before, .terminal-card::before,
.chat-card::before, .form-card::before, .info-card::before, .glass::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--glass-edge), transparent);
  pointer-events: none;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--brand);
  font: 700 0.75rem/1.2 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.35; } }
}
.eyebrow {
  font: 700 0.75rem/1.2 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.9rem;
}

/* ---------- Home hero ---------- */
.hero:has(.hero-nx-grid) { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.hero-nx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
}
.hero-nx-grid h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.375rem, 1.5rem + 3.2vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero-nx-grid .lede { max-width: 34rem; margin-top: 1.5rem; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); }
.hero-nx-grid .hero-actions { margin-top: 2rem; }
@media (max-width: 60rem) { .hero-nx-grid { grid-template-columns: minmax(0, 1fr); } .hero-nx-grid h1 { max-width: 16ch; } }

.value-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 2.25rem; max-width: 34rem; }
.value-tile { padding: 0.9rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--glass); }
.value-tile strong { display: block; font: 700 1.375rem/1.1 var(--font-display); color: var(--ink); }
.value-tile span { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.75rem; line-height: 1.35; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
@media (max-width: 36rem) { .value-tiles { grid-template-columns: minmax(0, 1fr); } }

/* console card */
.console { padding: 0; overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--rule); font: 600 0.75rem/1 var(--font-display); letter-spacing: 0.04em; color: var(--muted); }
.console-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); display: block; }
.console-bar i:nth-child(1) { background: #FF6B6B; opacity: 0.8; }
.console-bar i:nth-child(2) { background: #FFD166; opacity: 0.8; }
.console-bar i:nth-child(3) { background: var(--teal); opacity: 0.8; }
.console-bar span { margin-left: 0.4rem; }
.console-bar em { margin-left: auto; font-style: normal; color: var(--brand); border: 1px solid var(--glass-edge); border-radius: 999px; padding: 0.2rem 0.6rem; }
.console-body { padding: 1.1rem; display: grid; gap: 0.85rem; }
.pipe-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.pipe-strip div { padding: 0.6rem 0.5rem; border: 1px solid var(--rule); border-radius: 10px; background: rgba(255, 255, 255, 0.03); text-align: center; }
.pipe-strip b { display: block; font: 700 0.6875rem/1.2 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.pipe-strip span { display: block; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--ink); }
.pipe-strip .is-optional { border-style: dashed; }
@media (max-width: 36rem) { .pipe-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lead-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.75rem 0.85rem; border: 1px solid var(--rule); border-radius: 10px; background: rgba(255, 255, 255, 0.025); }
.lead-row .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.lead-row .ico svg { width: 18px; height: 18px; }
.lead-row.is-muted .ico { background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.lead-row p { margin: 0; max-width: none; line-height: 1.35; }
.lead-row .who { font-weight: 600; font-size: 0.9375rem; }
.lead-row .what { color: var(--muted); font-size: 0.8125rem; }
.tag { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font: 700 0.6875rem/1.4 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--glass-edge); white-space: nowrap; }
.tag.warm { background: rgba(255, 209, 102, 0.1); color: #FFD166; border-color: rgba(255, 209, 102, 0.35); }
.tag.out { background: rgba(255, 156, 143, 0.1); color: #FF9C8F; border-color: rgba(255, 156, 143, 0.35); }
:root[data-theme="light"] .tag.warm { color: #8A5A00; background: #FFF3D6; border-color: #E6C26A; }
:root[data-theme="light"] .tag.out { color: #B42318; background: #FDE7E4; border-color: #F0A8A0; }
.console-note { margin: 0; text-align: center; font-size: 0.75rem; color: var(--muted); }

/* ---------- Section rhythm ---------- */
.section { padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.section + .section { border-top: 0; }
.section-tint { background: transparent; }
.section-flow { padding-top: 1rem; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head h2, h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.15; }
.section-head-split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; max-width: none; }
.section-head-split > div { max-width: 44rem; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center p { margin-inline: auto; }
.mod-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.8rem; border: 1px solid var(--rule); border-radius: 999px; background: rgba(255, 255, 255, 0.03); color: var(--muted); font-size: 0.8125rem; font-weight: 600; }

/* ---------- Four-step flow ---------- */
.flow::before { height: 2px; background: linear-gradient(90deg, var(--brand), rgba(0, 240, 255, 0.25)); box-shadow: 0 0 10px rgba(0, 240, 255, 0.35); }
.flow-node-badge { background: var(--paper); color: var(--brand); border: 1.5px solid var(--brand); box-shadow: 0 0 0 6px var(--paper), 0 0 14px rgba(0, 240, 255, 0.35); }
:root[data-theme="light"] .flow-node-badge { background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 6px var(--paper); }
.ncard { padding: 1.25rem; gap: 0.5rem; }
.ncard-tag { margin: 0 0 0.25rem; font: 700 0.6875rem/1.2 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.flow-node.is-core .ncard { border-color: var(--glass-edge); box-shadow: 0 0 28px -6px rgba(0, 240, 255, 0.3), var(--card-glow); }
.flow-node.is-core .ncard-tag { color: var(--brand); }
.mini { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--rule); border-radius: 10px; }
:root[data-theme="light"] .mini { background: var(--paper); }
.mini-img { background: var(--brand-soft); }
.mini-pill { color: var(--on-brand); }
.mini-opt { border-color: var(--field); }
.mini-opt.on { background: var(--brand-soft); }
.mini-bubble.ai { background: rgba(255, 255, 255, 0.07); }
:root[data-theme="light"] .mini-bubble.ai { background: var(--brand-soft); }
.mini-result { background: rgba(255, 255, 255, 0.03); }
.platform-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 0.75rem; }
.platform-tags span { padding: 0.15rem 0.55rem; border: 1px solid var(--rule); border-radius: 6px; background: rgba(255, 255, 255, 0.03); color: var(--muted); font-size: 0.6875rem; font-weight: 600; }
.flow-optional { border: 1.5px dashed var(--field); background: var(--glass); border-radius: var(--radius-lg); }
.flow-optional::before, .flow-optional::after { border-left-color: var(--field); }
.flow-optional .chip { align-self: flex-start; }

.chip { background: var(--brand-soft); color: var(--brand); border: 1px solid var(--glass-edge); font-family: var(--font-display); letter-spacing: 0.02em; }

/* ---------- AI follow-up showcase ---------- */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; }
@media (max-width: 60rem) { .showcase { grid-template-columns: minmax(0, 1fr); } }
.chat-card { padding: 1.25rem; display: grid; gap: 0.9rem; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; font: 600 0.8125rem/1.2 var(--font-display); color: var(--ink); }
.chat-head .tag { font-size: 0.625rem; }
.chat-msg { max-width: 88%; margin: 0; padding: 0.8rem 1rem; border: 1px solid var(--rule); border-radius: 14px; font-size: 0.9375rem; line-height: 1.5; }
.chat-msg small { display: block; margin-bottom: 0.25rem; font: 700 0.6875rem/1.2 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.chat-msg.ai { background: rgba(255, 255, 255, 0.045); border-top-left-radius: 4px; }
.chat-msg.lead { align-self: end; margin-left: auto; background: var(--brand-soft); border-color: var(--glass-edge); border-top-right-radius: 4px; }
.chat-msg.lead small { color: var(--ink); opacity: 0.75; }
.chat-foot { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; padding-top: 0.75rem; border-top: 1px solid var(--rule); font-size: 0.75rem; color: var(--muted); }
.chat-foot b { color: var(--teal); font-weight: 600; }
.check-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; }
.check-list svg { width: 22px; height: 22px; margin-top: 0.15rem; color: var(--teal); }
.check-list strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.check-list span { color: var(--muted); font-size: 0.9375rem; }
.showcase h2 { margin-bottom: 1rem; }
.showcase > div > p { color: var(--muted); }
.showcase .btn { margin-top: 1.75rem; }

/* ---------- Benefit cards ---------- */
.benefit-cards { gap: 1.25rem; }
.benefit-card { padding: 1.5rem; }
.benefit-card h3 { font-size: 1.1875rem; }
.benefit-icon { background: var(--brand-soft); border: 1px solid var(--glass-edge); border-radius: 12px; }
.benefit-card:hover { border-color: var(--glass-edge); }

/* ---------- Lead delivery panel ---------- */
.panel { padding: clamp(1.5rem, 1rem + 2vw, 3rem); }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
@media (max-width: 60rem) { .panel-grid { grid-template-columns: minmax(0, 1fr); } }
.panel h2 { margin-bottom: 1rem; }
.panel p { color: var(--muted); }
.chip-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.chip-grid li { display: flex; align-items: center; gap: 0.55rem; padding: 0.7rem 0.8rem; border: 1px solid var(--rule); border-radius: 10px; background: rgba(255, 255, 255, 0.03); font-size: 0.875rem; font-weight: 600; }
.chip-grid svg { width: 18px; height: 18px; flex: none; color: var(--brand); }
@media (max-width: 40rem) { .chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.terminal-card { padding: 1.1rem 1.25rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.8125rem; line-height: 1.7; background: rgba(5, 7, 11, 0.75); }
:root[data-theme="light"] .terminal-card { background: #0C1B36; color: #EAF2FF; }
.terminal-card .t-title { margin: 0 0 0.75rem; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8A99B5; }
.terminal-card p { margin: 0; max-width: none; color: #DFE2EF; }
.terminal-card .hl { color: #33E7C3; }
.terminal-card .cy { color: #00F0FF; }
.terminal-card .t-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; padding-top: 0.7rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.6875rem; color: #8A99B5; }
.terminal-card .t-foot b { color: #33E7C3; }

/* ---------- CTA band → glass panel with glow ---------- */
.cta-band { background: transparent; color: var(--ink); padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.cta-band .wrap {
  position: relative;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(1.25rem, 1rem + 3vw, 3rem);
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  background:
    radial-gradient(40rem 14rem at 50% 0, rgba(0, 240, 255, 0.14), transparent 70%),
    var(--glass);
  text-align: center;
  box-shadow: 0 0 40px -12px rgba(0, 240, 255, 0.25);
}
:root[data-theme="light"] .cta-band .wrap { background: var(--brand); color: var(--on-brand); border-color: var(--brand); box-shadow: none; }
.cta-band h2 { max-width: 26ch; margin-inline: auto; font-size: clamp(1.875rem, 1.4rem + 2vw, 3rem); }
.cta-band p { margin-inline: auto; color: var(--muted); max-width: 44rem; }
:root[data-theme="light"] .cta-band p { color: var(--on-brand); }
.cta-band .btn { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; box-shadow: var(--btn-glow); margin-top: 0.5rem; }
.cta-band .btn:hover { background: var(--btn-bg); color: var(--btn-fg); transform: scale(1.02); }
:root[data-theme="light"] .cta-band .btn { background: var(--on-brand); color: var(--brand); box-shadow: none; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 1.75rem; }
.cta-actions .btn { margin-top: 0; }
.cta-actions .btn-quiet { background: rgba(255, 255, 255, 0.05); color: var(--ink); border-color: rgba(255, 255, 255, 0.15); box-shadow: none; }
.cta-actions .btn-quiet:hover { background: rgba(0, 240, 255, 0.06); border-color: rgba(0, 240, 255, 0.6); color: var(--brand); }
.trust-row { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.75rem; color: var(--muted); font-size: 0.875rem; }
.trust-row li { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-row svg { width: 16px; height: 16px; color: var(--teal); }
.cta-band .badge-pill { margin-bottom: 1rem; }

/* ---------- Services hub ---------- */
.module-grid { gap: 1.25rem; }
.module-card { padding: 1.5rem; border-top: 1px solid var(--rule); gap: 0.65rem; }
.module-card:hover { border-color: var(--glass-edge); box-shadow: 0 0 28px -8px rgba(0, 240, 255, 0.25), var(--card-glow); }
.module-card .step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 0.25rem; border-radius: 12px; border: 1px solid var(--glass-edge); background: var(--brand-soft); font-size: 1rem; }
.module-card h2 { font-size: 1.375rem; line-height: 1.2; }
.module-card .more { text-decoration: none; }
.module-card .more:hover { text-decoration: underline; }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--glass); }
.matrix { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 0.9375rem; }
.matrix th, .matrix td { padding: 0.95rem 1.25rem; text-align: left; border-bottom: 1px solid var(--rule); }
.matrix thead th { font: 700 0.75rem/1.2 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.matrix thead th:last-child { color: var(--brand); }
.matrix tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix td { text-align: center; width: 9.5rem; }
.matrix thead th:not(:first-child) { text-align: center; }
.matrix .yes { color: var(--teal); font-weight: 700; }
.matrix .no { color: var(--field); }
.matrix th[scope="row"] { font-weight: 600; }

/* ---------- Process / detail / tiers ---------- */
.trace::before { height: 2px; background: linear-gradient(90deg, var(--brand), rgba(0, 240, 255, 0.25)); }
.trace-step::before { border: 2px solid var(--brand); background: var(--paper); box-shadow: 0 0 12px rgba(0, 240, 255, 0.4); }
.trace-step:last-child::before { background: var(--brand); }
.section-tint .trace-step::before { background: var(--paper); }
.detail { padding: 1.75rem; margin-bottom: 1.25rem; border-top: 1px solid var(--rule); }
.detail:first-of-type { border-top: 1px solid var(--rule); padding-top: 1.75rem; }
.detail .step-num { display: inline-grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--glass-edge); border-radius: 14px; background: var(--brand-soft); font-size: 1.125rem; }
.tier { border-left-width: 1px; border-top: 3px solid var(--tier); }
.tier-hot { --tier: #00F0FF; }
.tier-warm { --tier: #FFD166; }
.tier-pending { --tier: #8A99B5; border-left-style: solid; }
:root[data-theme="light"] .tier-hot { --tier: var(--brand); }
.tier .tier-status { color: var(--brand); }
.callout { border: 1.5px dashed var(--field); border-radius: var(--radius-lg); }
.checks li::before { background: var(--teal); box-shadow: 0 0 8px rgba(51, 231, 195, 0.5); }
:root[data-theme="light"] .checks li::before { background: var(--brand); box-shadow: none; }
.service-index a { border: 1px solid var(--rule); background: rgba(255, 255, 255, 0.03); color: var(--ink); }
.service-index a:hover { border-color: var(--glass-edge); background: var(--brand-soft); color: var(--brand); }
.industry-list li { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--rule); color: var(--ink); }
.breadcrumb { font-size: 0.875rem; }

.page-hero { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) 2rem; }
.page-hero h1 { max-width: 22ch; font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; }
.page-hero .lede { max-width: 42rem; margin-top: 1.25rem; }

/* ---------- Benefits (about) ---------- */
.benefits { gap: 1.25rem; }
.benefit { padding: 1.5rem; background: var(--glass); border: 1px solid var(--rule); border-radius: var(--radius-lg); border-top: 1px solid var(--rule); }
.benefit h3 { font-size: 1.1875rem; }
.mission { border-left: 3px solid var(--brand); box-shadow: -8px 0 24px -12px rgba(0, 240, 255, 0.4); font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Contact ---------- */
.contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 1.5rem; }
.contact-grid > * { min-width: 0; }
/* Keep this breakpoint after the theme's desktop grid so phones actually stack. */
@media (max-width: 56rem) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 36rem) {
  .form-card .form-row, .form-card .choices { grid-template-columns: minmax(0, 1fr); }
  .form-card .field { min-width: 0; }
  .form-card input[type="text"], .form-card input[type="email"],
  .form-card input[type="tel"], .form-card select, .form-card textarea { min-width: 0; }
}

.contact-stack { display: grid; gap: 1.25rem; }
.info-card { padding: 1.25rem; }
.info-item { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: center; padding: 0.85rem 1rem; margin-bottom: 0.65rem; border: 1px solid var(--rule); border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.info-item:last-child { margin-bottom: 0; }
.info-item .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.info-item .ico svg { width: 20px; height: 20px; }
.info-item small { display: block; font: 600 0.6875rem/1.2 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.info-item a, .info-item span.val { display: block; margin-top: 0.15rem; font: 700 1.0625rem/1.3 var(--font-display); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.info-item a:hover { color: var(--brand); }
.next-steps { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: ns; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; margin: 0; }
.next-steps li::before { content: counter(ns); width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--glass-edge); border-radius: 50%; background: var(--brand-soft); color: var(--brand); font: 700 0.8125rem/1 var(--font-display); }
.next-steps strong { display: block; font-family: var(--font-display); }
.next-steps span { color: var(--muted); font-size: 0.9375rem; }
.info-card h2 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.form-card { padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); }
.form-card h2 { font-size: 1.5rem; }
.form-card::after { content: none; }
.form-card .cf-turnstile { margin-bottom: 1rem; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  color: var(--ink);
}
:root[data-theme="light"] input[type="text"], :root[data-theme="light"] input[type="email"], :root[data-theme="light"] input[type="tel"], :root[data-theme="light"] select, :root[data-theme="light"] textarea { background: var(--paper); border: 2px solid var(--field); }
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid rgba(0, 240, 255, 0.25); outline-offset: 0; }
select option { background: #0D1322; color: #F4F7FC; }
:root[data-theme="light"] select option { background: #fff; color: #0C1B36; }
.field .choice { border: 1.5px solid var(--rule); background: rgba(255, 255, 255, 0.03); border-radius: 10px; }
:root[data-theme="light"] .field .choice { border: 2px solid var(--field); background: var(--paper); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
input[type="radio"], input[type="checkbox"] { accent-color: #00F0FF; }
:root[data-theme="light"] input[type="radio"], :root[data-theme="light"] input[type="checkbox"] { accent-color: var(--brand); }
.form-card .btn-primary { width: 100%; min-height: 54px; font-size: 1.0625rem; }

/* ---------- Footer ---------- */
.site-footer { background: rgba(13, 19, 34, 0.55); border-top: 1px solid var(--rule); }
:root[data-theme="light"] .site-footer { background: var(--surface); }
.site-footer h2 { font: 700 0.75rem/1.2 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.site-footer li a { color: var(--muted); text-decoration: none; }
.site-footer li a:hover { color: var(--brand); text-decoration: underline; }
.footer-brand { color: var(--brand); }

@media (prefers-reduced-motion: reduce) { .btn-primary:hover, .cta-band .btn:hover { transform: none; } }
.section-head .eyebrow { font-size: 0.75rem; line-height: 1.2; }

/* ---------- Home: industry use cases ---------- */
.usecase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 70rem) { .usecase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 44rem) { .usecase-grid { grid-template-columns: minmax(0, 1fr); } }
.usecase { position: relative; display: flex; flex-direction: column; gap: 1.1rem; padding: 1.5rem; background: var(--glass); border: 1px solid var(--rule); border-radius: var(--radius-lg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--card-glow); }
.usecase::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--glass-edge), transparent); pointer-events: none; }
.usecase:hover { border-color: var(--glass-edge); }
.usecase-head { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; }
.usecase-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--glass-edge); border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.usecase-icon svg { width: 22px; height: 22px; }
.usecase h3 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.usecase-tag { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.usecase-steps { margin: 0; display: grid; gap: 0.7rem; }
.usecase-steps > div { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; padding-top: 0.7rem; border-top: 1px solid var(--rule); }
.usecase-steps dt { font: 700 0.6875rem/1.4 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.usecase-steps dd { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.usecase-more { margin: 2rem 0 0; color: var(--muted); max-width: none; }

/* Light theme: CTA band is a solid brand-blue panel, so everything on it must be light */
:root[data-theme="light"] .cta-band h2 { color: var(--on-brand); }
:root[data-theme="light"] .cta-band .grad-text { background: none; -webkit-text-fill-color: currentColor; color: var(--on-brand); }
:root[data-theme="light"] .cta-band .badge-pill { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: var(--on-brand); }
:root[data-theme="light"] .cta-band .badge-pill * { color: inherit; }
:root[data-theme="light"] .cta-actions .btn-quiet { background: transparent; color: var(--on-brand); border-color: rgba(255,255,255,.65); }
:root[data-theme="light"] .cta-actions .btn-quiet:hover { background: rgba(255,255,255,.14); color: var(--on-brand); border-color: #fff; }
:root[data-theme="light"] .trust-row { color: var(--on-brand); }
:root[data-theme="light"] .trust-row svg { color: var(--on-brand); }

/* ---------- Home hero callouts (2026-10-07) ---------- */
.hero-callouts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; max-width: 36rem; }
.hero-callouts li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--glass); }
.callout-ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--glass-edge); border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.callout-ico svg { width: 19px; height: 19px; }
.hero-callouts strong { display: block; font: 700 1rem/1.25 var(--font-display); color: var(--ink); }
.hero-callouts span:not(.callout-ico) { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.8125rem; line-height: 1.4; }
.hero-trust { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; color: var(--muted); font-size: 0.875rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-trust svg { width: 16px; height: 16px; color: var(--teal); }
@media (max-width: 36rem) { .hero-callouts { grid-template-columns: minmax(0, 1fr); } }
.hero-nx-grid h1.h1-offer { max-width: 20ch; font-size: clamp(2.25rem, 1.2rem + 2.4vw, 3.25rem); line-height: 1.08; }


/* Reference-led redesign — 2026-10-17. Form logic and original logo untouched. */
:root { --wrap: 90rem; --radius: 12px; --radius-lg: 16px; }
:root:not([data-theme="light"]) {
  --paper: #04111b; --surface: #081c2b; --ink: #f5f8fc; --muted: #c0d4e5;
  --brand: #20e8de; --on-brand: #02151d; --brand-soft: rgba(32,232,222,.1);
  --rule: #193547; --field: #6b8ba4; --glass: #091d2b; --elev: #102b3f;
  --glass-edge: #28566c; --btn-bg: #20e8de; --btn-fg: #02151d; --btn-glow: none;
  --card-glow: none; --header-bg: #04111b; --teal: #20e8de;
}
:root:not([data-theme="light"]) body { background: #04111b; }
.wrap { width: min(calc(100% - 5rem), var(--wrap)); }
.site-header { background: var(--header-bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { min-height: 6rem; gap: 1.25rem; }
.brand-link .logo-mark { width: 3.5rem; }
.brand-link .logo-word { width: 10rem; }
.site-nav ul { background: none; border: 0; gap: .35rem; }
.site-nav a { padding: .65rem .8rem; font-size: .875rem; }
.site-nav a[aria-current="page"] { background: none; text-decoration: underline; text-underline-offset: .45em; }
.icon-btn { border: 0; background: var(--brand-soft); width: 44px; height: 44px; }
.btn { border-radius: 999px; font-size: .9375rem; padding: .9rem 1.35rem; font-weight: 700; box-shadow: none; }
.btn-primary:hover { transform: none; box-shadow: none; background: var(--ink); color: var(--paper); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--muted); }
.btn-quiet:hover { background: var(--brand-soft); border-color: var(--brand); }
.reference-hero { padding: 2.75rem 0 2.25rem; background: radial-gradient(ellipse at 85% 30%,rgba(0,155,179,.12),transparent 60%); }
.reference-hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 2rem; align-items: center; }
.reference-intro .eyebrow { font-size: .75rem; font-weight: 500; letter-spacing: .12em; color: var(--muted); margin-bottom: 1rem; }
.reference-intro h1 { font-size: clamp(2.1rem, 3.3vw, 3.4rem); line-height: 1.12; letter-spacing: -.045em; max-width: none; text-wrap: initial; margin: 0; }
.reference-intro h1 > span { color: var(--brand); }
.reference-intro .lede { font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.5; color: var(--ink); margin: 1.5rem 0 0; max-width: 37ch; }
.reference-intro .hero-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.reference-intro .btn-primary { gap: 1rem; }
.play-symbol { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--brand); color: var(--brand); border-radius: 50%; font-size: 1rem; }
.reference-note { margin: 1.15rem 0 0; font-size: .75rem; color: var(--muted); max-width: 55ch; }
.pipeline-visual { min-width: 0; margin: 0; }
.pipeline-stages { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.6rem; }
.pipeline-stage { position: relative; min-width: 0; padding: .75rem .4rem .5rem; border: 1px solid #28566c; border-radius: 13px; background: linear-gradient(160deg,rgba(13,47,65,.48),rgba(3,20,32,.8)); text-align: center; }
.pipeline-stage:not(:last-child)::after { content: '→'; position: absolute; left: calc(100% + .25rem); top: 22%; width: 1rem; color: #35e5e5; font-size: 1.5rem; font-weight: 700; }
.stage-icon { width: 30px; height: 30px; margin: 0 auto .4rem; color: #20e8de; }
.pipeline-stage:first-child .stage-icon, .pipeline-stage:nth-child(3) .stage-icon { color: #4dd6fb; }
.pipeline-stage h2 { font-size: .875rem; line-height: 1.25; letter-spacing: -.03em; margin: 0; color: #f5f8fc; }
.stage-sub { color: #c0d4e5; font-size: .625rem; line-height: 1.5; margin: .3rem 0 .75rem; min-height: 2.9em; }
.stage-foot { color: #b8d4e6; font-size: .6rem; line-height: 1.4; margin: .65rem 0 0; }
.mock-screen { background: #f7faff; color: #111c33; border-radius: 7px; overflow: hidden; min-height: 12.75rem; text-align: left; font-family: var(--font-body); box-shadow: 0 0 0 1px rgba(165,204,229,.15); }
.sample-ad img { display: block; width: 100%; height: 6.3rem; object-fit: cover; }
.sample-ad > div { padding: .6rem; }
.sample-ad b { display: block; font-size: .8rem; line-height: 1.2; }
.sample-ad p { font-size: .56rem; margin: .35rem 0 .65rem; color: #465471; }
.sample-button { display: block; background: #0874ed; color: white; border-radius: 4px; text-align: center; padding: .4rem .15rem; font: 600 .625rem/1.2 var(--font-body); }
.sample-survey { padding: .7rem .5rem; display: flex; flex-direction: column; justify-content: space-between; gap: .65rem; }
.sample-survey > b { font-size: .7rem; line-height: 1.3; }
.sample-survey div > span { display: block; font-size: .5rem; margin-bottom: .25rem; font-weight: 600; }
.sample-survey i { display: flex; justify-content: space-between; border: 1px solid #bccbe0; border-radius: 3px; font-size: .5rem; color: #425470; font-style: normal; padding: .35rem .25rem; }
.sample-survey em { font-style: normal; }
.sample-followup { display: flex; flex-direction: column; justify-content: center; }
.sample-followup > div { display: flex; align-items: center; gap: .45rem; padding: 1rem .5rem; border-bottom: 1px solid #d7e3ef; }
.sample-followup > div:last-child { border-bottom: 0; }
.sample-avatar { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #d7e4ee; color: #27476a; font-size: .65rem; font-weight: 700; }
.ai-avatar { background: #00825b; color: white; border-radius: 4px; }
.person-avatar { background: #d5bc9f; color: #163142; }
.sample-followup p, .sample-handoff p { margin: 0; line-height: 1.3; }
.sample-followup b { font-size: .56rem; display: block; }
.sample-followup small { display: block; color: #50627c; font-size: .45rem; margin-top: .3rem; }
.sample-handoff { padding: .4rem; display: flex; flex-direction: column; justify-content: space-evenly; }
.sample-handoff > div { display: flex; align-items: center; gap: .3rem; padding: .55rem 0; border-bottom: 1px solid #d7e3ef; }
.sample-handoff > div:last-child { border: 0; }
.sample-handoff .sample-avatar { flex-basis: 22px; width: 22px; height: 22px; font-size: .55rem; }
.sample-handoff b { display: block; font-size: .48rem; }
.sample-handoff small { display: block; font-size: .45rem; color: #50627c; margin-top: .25rem; }
.sample-handoff i { margin-left: auto; background: #00865b; color: white; border-radius: 4px; padding: .18rem .25rem; font-size: .45rem; font-style: normal; }
.sample-handoff .warm { background: #ffcf50; color: #493100; }
.sample-handoff .new { background: #d6e0ed; color: #263b56; }
.pipeline-visual figcaption { text-align: right; color: var(--muted); font-size: .625rem; margin-top: .75rem; }
.reference-benefits { border-top: 1px solid var(--rule); padding-block: 1.5rem; background: rgba(0,0,0,.1); }
.reference-benefit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2.5rem; }
.reference-benefit-grid > div { display: flex; gap: 1.2rem; align-items: flex-start; }
.reference-benefit-icon { flex: 0 0 64px; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid #265c77; border-radius: 50%; background: linear-gradient(140deg,#0d2d43,#03131e); color: #35d9f6; }
.reference-benefit-icon svg { width: 34px; height: 34px; }
.reference-benefit-grid h2 { font-size: 1.0625rem; line-height: 1.3; margin: 0 0 .4rem; letter-spacing: -.02em; }
.reference-benefit-grid p { font-size: .875rem; line-height: 1.65; margin: 0; color: var(--muted); }
.industry-section { --ink: #09142b; --muted: #415372; --brand: #146575; --brand-soft: #d8faf7; --rule: #ccd7e6; --glass: #fff; --glass-edge: #c9d7e5; color: #09142b; background: #f8faff; padding-block: 2.75rem 3.5rem; }
.industry-section .section-head { max-width: 60rem; margin-bottom: 1.25rem; }
.industry-section .eyebrow { color: #556c91; }
.industry-section .section-head h2 { font-size: clamp(1.8rem,2.65vw,2.7rem); font-weight: 800; letter-spacing: -.045em; }
.industry-section .section-head p { color: #415372; font-size: 1rem; max-width: 78ch; line-height: 1.55; }
.industry-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.industry-feature { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid #ccd7e6; border-radius: 12px; overflow: hidden; }
.industry-feature > img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.industry-feature > div { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; align-items: flex-start; }
.industry-symbol { color: #1699ab; font-size: 1.8rem; line-height: 1; margin-bottom: .55rem; }
.industry-feature h3 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.04em; margin: 0 0 .4rem; }
.industry-feature p { font-size: .8125rem; line-height: 1.6; color: #415372; margin-bottom: .9rem; }
.industry-feature a { font-size: .75rem; font-weight: 700; color: #092839; background: #a4f5ed; padding: .55rem .8rem; border-radius: 6px; text-decoration: none; margin-top: auto; }
.industry-feature a:hover { background: #70e8dc; text-decoration: underline; }
.industry-example-note { font-size: .6875rem; color: #52657f; margin-top: .8rem; margin-bottom: 1.5rem; }
.industry-section .usecase-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.5rem 1.75rem; border-top: 1px solid #d4deea; padding-top: 1.5rem; }
.industry-section .usecase { padding: 0; background: none; border: none; box-shadow: none; backdrop-filter: none; }
.industry-section .usecase::before { content: none; }
.industry-section .usecase-head { display: block; }
.industry-section .usecase-icon { display: none; }
.industry-section .usecase h3 { font-size: .9375rem; color: #132b45; }
.industry-section .usecase-tag { font-size: .8125rem; color: #415372; line-height: 1.65; }
.industry-section .usecase-more { font-size: .875rem; }
.industry-section :focus-visible { outline-color: #1c518d; }
.section-flow { padding-block: 4.5rem; }
.section-head h2 { line-height: 1.2; }
.ncard::before, .benefit-card::before, .module-card::before, .form-card::before, .info-card::before { content: none; }
.ncard, .module-card, .benefit-card, .info-card, .form-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
.flow-node.is-core .ncard { box-shadow: none; }
.page-hero { padding-block: 3.5rem; background: radial-gradient(ellipse at 95% 0,rgba(0,155,179,.12),transparent 70%); border-bottom: 1px solid var(--rule); }
.page-hero h1 { max-width: 24ch; font-size: clamp(2.25rem,4.5vw,4rem); }
.page-hero .lede { max-width: 65ch; }
.module-card { border-radius: 12px; }
.module-card h2 { font-size: 1.5rem; }
.cta-band .wrap { border-radius: 20px; box-shadow: none; }
.site-footer { background: #03101a; }
:root[data-theme="light"] .pipeline-stage { background: #092333; }
:root[data-theme="light"] .reference-benefits { background: #edf3f9; }
:root[data-theme="light"] .site-footer { background: var(--paper); }
:root[data-theme="light"] .reference-intro h1 > span { color: var(--brand); }
@media (min-width: 100rem) { .reference-intro h1 { font-size: 3.4rem; } }
@media (max-width: 78rem) {
  .header-cta { display: none; }
  .reference-hero-grid { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 1.5rem; }
  .pipeline-stages { gap: .9rem; }
  .pipeline-stage:not(:last-child)::after { left: calc(100% + .05rem); width: .8rem; font-size: 1.2rem; }
  .pipeline-stage h2 { font-size: .75rem; }
  .mock-screen { min-height: 12rem; }
  .sample-handoff .sample-avatar { display: none; }
  .reference-benefit-grid { gap: 1.5rem; }
  .reference-benefit-icon { flex-basis: 52px; width: 52px; height: 52px; }
  .reference-benefit-grid > div { gap: .75rem; }
}
@media (max-width: 60rem) {
  .wrap { width: min(calc(100% - 3rem),var(--wrap)); }
  .header-inner { min-height: 5rem; }
  .brand-link .logo-mark { width: 2.8rem; }
  .brand-link .logo-word { width: 8rem; }
  .reference-hero-grid { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .reference-intro h1 { font-size: clamp(2rem,5.2vw,3.3rem); }
  .reference-intro .lede { max-width: 48ch; }
  .pipeline-visual { width: 100%; max-width: 48rem; }
  .pipeline-stages { gap: 1.4rem; }
  .pipeline-stage { padding: 1rem .6rem .65rem; }
  .pipeline-stage h2 { font-size: .875rem; }
  .stage-sub { font-size: .6875rem; }
  .stage-foot { font-size: .625rem; }
  .mock-screen { min-height: 13rem; }
  .reference-benefit-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .reference-benefit-grid > div { align-items: center; }
  .reference-benefit-grid p { max-width: 62ch; }
  .industry-feature-grid { grid-template-columns: 1fr; }
  .industry-feature > img { min-height: 235px; max-height: 300px; }
  .industry-feature h3 { font-size: 1.3rem; }
  .industry-feature p { font-size: 1rem; }
  .industry-section .usecase-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 38rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner { gap: .5rem; }
  .brand-link .logo-mark { width: 2.4rem; }
  .brand-link .logo-word { width: 7rem; }
  .icon-btn { width: 40px; height: 40px; }
  .reference-hero { padding-top: 2.25rem; }
  .reference-intro .eyebrow { font-size: .625rem; line-height: 1.7; }
  .reference-intro h1 { font-size: clamp(1.75rem,7.7vw,2.6rem); line-height: 1.14; }
  .reference-intro .lede { font-size: 1.0625rem; }
  .reference-intro .hero-actions .btn { width: 100%; justify-content: center; }
  .reference-note { font-size: .7rem; }
  .pipeline-stages { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem 1.5rem; }
  .pipeline-stage:not(:last-child)::after { content: none; }
  .pipeline-stage:nth-child(odd)::after { content: '→'; left: calc(100% + .3rem); }
  .pipeline-stage { padding: .8rem .5rem .6rem; }
  .pipeline-stage h2 { font-size: .875rem; }
  .mock-screen { min-height: 13.5rem; }
  .sample-handoff .sample-avatar { display: grid; }
  .pipeline-visual figcaption { text-align: left; }
  .industry-section { padding-block: 2.5rem; }
  .industry-feature { grid-template-columns: 1fr; }
  .industry-feature > img { height: 190px; min-height: 0; }
  .industry-feature > div { padding: 1.25rem; }
  .industry-feature p { font-size: .9375rem; }
  .industry-section .usecase-grid { grid-template-columns: 1fr; }
  .reference-benefit-grid h2 { font-size: 1rem; }
  .reference-benefit-icon { flex-basis: 50px; height: 50px; }
}
@media (forced-colors: active) {
  .reference-intro h1 > span { color: CanvasText; }
  .pipeline-stage, .industry-feature { border: 1px solid CanvasText; }
  .pipeline-stage h2, .stage-sub, .stage-foot { color: CanvasText; }
}
/* Supporting pages: useful visual explanations, not fabricated performance data. */
.detail-hero-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: clamp(2rem,5vw,5rem); align-items: center; }
.detail-hero-copy h1 { font-size: clamp(2rem,3.4vw,3.5rem); max-width: 24ch; }
.detail-hero-copy .lede { font-size: 1.0625rem; line-height: 1.7; }
.service-visual { margin: 0; padding: 1.5rem; background: #f8faff; border: 1px solid #c5d6e5; border-radius: 16px; color: #10233d; box-shadow: 0 15px 45px rgba(0,0,0,.12); }
.visual-heading { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; line-height: 1.4; margin-bottom: 1.25rem; }
.service-visual figcaption { font-size: .6875rem; line-height: 1.6; margin-top: 1rem; color: #4c6280; padding-top: .9rem; border-top: 1px solid #d4e0eb; }
.visual-ad { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 9px; background: white; border: 1px solid #d4e0eb; }
.visual-ad img { display: block; width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.visual-ad > div { display: flex; flex-direction: column; justify-content: center; padding: 1rem; }
.visual-label { font-size: .625rem; color: #4c6280; margin-bottom: .65rem; }
.visual-ad strong { font-size: 1.3rem; line-height: 1.2; font-family: var(--font-display); }
.visual-ad p { font-size: .8125rem; line-height: 1.6; margin-top: .6rem; color: #415775; }
.visual-pill { display: inline-block; align-self: flex-start; font-size: .75rem; background: #cdf7f1; color: #135c59; border-radius: 6px; padding: .5rem .75rem; }
.visual-criteria { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.visual-criteria li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; align-items: center; border: 1px solid #d4e0eb; border-radius: 8px; padding: 1rem; background: white; }
.visual-criteria li > span { color: #146575; font-size: .8125rem; font-weight: 700; }
.visual-criteria strong { font-size: .875rem; line-height: 1.5; }
.visual-result { font-size: .8125rem; color: #135c59; background: #ddf7f2; padding: .75rem 1rem; border-radius: 7px; margin: 1rem 0 0; }
.visual-conversation { display: grid; gap: .8rem; }
.visual-conversation p { font-size: .875rem; line-height: 1.6; margin: 0; padding: .9rem 1rem; border-radius: 9px; background: #e7edf5; max-width: 92%; }
.visual-conversation p:nth-child(2) { background: #d8f6f0; margin-left: auto; }
.visual-conversation small { display: block; margin-bottom: .3rem; font-weight: 700; font-size: .6875rem; color: #24536a; }
.visual-status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.visual-status-list li { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: .75rem; align-items: center; padding: 1rem .8rem; border: 1px solid #d4e0eb; border-radius: 8px; background: white; }
.status-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: #637995; }
.status-dot.hot { background: #00815d; }.status-dot.warm { background: #b57400; }
.visual-status-list strong { font-size: .9375rem; }.visual-status-list p { color: #4c6280; font-size: .75rem; margin: .15rem 0 0; }
.visual-status-list b { font-size: .625rem; color: #24536a; border-radius: 5px; padding: .35rem .5rem; background: #e7f0f6; }
.visual-report-loop { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; counter-reset: report-step; }
.visual-report-loop li { counter-increment: report-step; position: relative; padding: .65rem .75rem .65rem 2.9rem; border-left: 2px solid #91d9d5; }
.visual-report-loop li::before { content: counter(report-step); position: absolute; left: .6rem; top: .65rem; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%; color: #135c59; background: #d8f6f0; font-size: .75rem; font-weight: 700; }
.visual-report-loop span { display: block; font-size: .6875rem; color: #4c6280; margin-bottom: .2rem; }.visual-report-loop strong { font-size: .875rem; line-height: 1.5; }
.service-team-note { margin: 0 0 2rem; max-width: 66ch; color: var(--muted); font-size: 1rem; }
.module-symbol { display: grid; place-items: center; width: 48px; height: 48px; background: var(--brand-soft); border-radius: 10px; color: var(--brand); margin-bottom: 1.25rem; }.module-symbol svg { width: 25px; height: 25px; }
.process-map { border: 1px solid var(--rule); border-radius: 16px; padding: 1.5rem; background: var(--surface); }
.process-map .trace-step h3 { font-size: 1.1rem; }.process-map .trace-step p { font-size: .875rem; line-height: 1.6; }
.founder-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,.8fr); align-items: start; gap: clamp(2rem,6vw,6rem); }.founder-layout .prose { max-width: none; }
.founder-path { background: var(--glass); border: 1px solid var(--rule); border-radius: 16px; padding: 2rem; }.founder-path > .logo-mark { width: 72px; color: var(--brand); margin-bottom: 1rem; }.founder-path h3 { font-size: 1.2rem; margin-bottom: .35rem; }.founder-path > p { font-size: .875rem; color: var(--muted); }
.founder-path ol { list-style: none; padding: 0; margin: 1.5rem 0; border-left: 2px solid var(--glass-edge); }.founder-path li { padding: .7rem 0 .7rem 1.1rem; font-size: .9375rem; }.founder-path .founder-path-note { font-size: .8125rem; line-height: 1.7; margin-bottom: 0; padding-top: 1rem; border-top: 1px solid var(--rule); }
.service-visual :focus-visible { outline-color: #16408f; }
@media(max-width:60rem) { .detail-hero-grid { grid-template-columns: 1fr; gap: 2rem; }.service-visual { max-width: 40rem; width: 100%; }.founder-layout { grid-template-columns: 1fr; }.founder-path { max-width: 40rem; width: 100%; }.process-map { padding: 1.25rem; } }
@media(max-width:38rem) { .service-visual { padding: 1.1rem; }.visual-ad { grid-template-columns: 1fr; }.visual-ad img { height: 150px; min-height: 0; }.visual-criteria li { grid-template-columns: 1fr; gap: .3rem; padding: .8rem; }.visual-status-list li { grid-template-columns: 9px minmax(0,1fr); }.visual-status-list b { grid-column: 2; justify-self: start; }.founder-path { padding: 1.5rem; } }
/* Clarity pass: short service guides and scannable process cards. */
.coverage-label { color: #415372; font-size: .8125rem; margin: 1.5rem 0 .75rem; }
.industry-coverage { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.industry-coverage li { border: 1px solid #cbd9e7; border-radius: 999px; padding: .4rem .8rem; color: #294761; background: #fff; font-size: .8125rem; }
.industry-section .usecase-more { margin-top: 1.25rem; }
.quick-service-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1rem; }
.quick-service-grid > a { display: block; padding: 1.35rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); }
.quick-service-grid > a:hover { border-color: var(--brand); background: var(--brand-soft); }
.quick-service-grid > a > span { display: block; color: var(--brand); font-size: .75rem; margin-bottom: 1rem; }
.quick-service-grid strong { display: block; font-family: var(--font-display); font-size: 1rem; line-height: 1.4; }
.quick-service-grid small { display: block; font-family: var(--font-body); font-size: .6875rem; color: var(--muted); font-weight: 500; }
.quick-service-grid p { color: var(--muted); font-size: .875rem; line-height: 1.65; margin: .6rem 0 0; }
.process-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.process-detail-grid .detail { margin: 0; padding: 1.5rem; gap: 1rem; }
.process-detail-grid h2 { font-size: 1.25rem; line-height: 1.4; }
.process-detail-grid .detail p { font-size: .9375rem; line-height: 1.7; }
.process-detail-grid .detail p:last-child { margin-bottom: 0; }
@media(max-width:70rem) { .quick-service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:60rem) { .process-detail-grid { grid-template-columns: 1fr; }.quick-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:38rem) { .quick-service-grid { grid-template-columns: 1fr; }.quick-service-grid > a { padding: 1.1rem; }.quick-service-grid > a > span { margin-bottom: .5rem; }.process-detail-grid .detail { grid-template-columns: 1fr; padding: 1.25rem; }.process-detail-grid .detail > .step-num { font-size: 1rem; } }
/* About: stack the founder story and a full-width background card to avoid an empty column. */
.founder-layout { grid-template-columns: minmax(0,1fr); max-width: 64rem; gap: 1.5rem; }
.founder-layout .prose p { max-width: 75ch; }
.founder-layout .founder-path { display: grid; grid-template-columns: 56px minmax(0,1fr); column-gap: 1rem; width: 100%; max-width: none; padding: 1.5rem; }
.founder-path > .logo-mark { width: 56px; grid-row: span 2; margin: 0; align-self: center; }
.founder-path > h3 { align-self: end; margin-bottom: .2rem; }
.founder-path > p { margin-bottom: 0; }
.founder-path > ol { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; border-left: 0; margin: 1.25rem 0 1rem; }
.founder-path > ol > li { border-top: 2px solid var(--glass-edge); padding: .75rem 0 0; font-size: .875rem; }
.founder-path > .founder-path-note { grid-column: 1 / -1; padding-top: .85rem; }
@media(max-width:38rem) { .founder-path > ol { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* Keep a visible dropdown affordance when theme backgrounds override native styling. */
.select-wrap { position: relative; }
.select-wrap select { padding-right: 3.25rem; background-image: none; cursor: pointer; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-wrap:has(select:user-invalid) ~ .error-msg { display: block; }
