/* ============================================================
   Block Infrastructure — Page styles
   Layers on top of tokens.css. Page-specific only.
   ============================================================ */

/* ── Reset + base ─────────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; }

::selection { background: var(--blockid-soft); color: var(--ink); }

/* ── Layout primitives ────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}
@media (min-width: 768px) { .container { padding-left: var(--space-7); padding-right: var(--space-7); } }
@media (min-width: 1280px) { .container { padding-left: var(--space-8); padding-right: var(--space-8); } }

.section {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
  border-top: 1px solid var(--mist);
}
.section:first-of-type { border-top: none; }

@media (max-width: 767px) {
  .section { padding-top: var(--space-8); padding-bottom: var(--space-8); }
}

/* ── Type ─────────────────────────────────────────────────── */

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
}

.section-header { margin-bottom: var(--space-7); max-width: 1040px; }
.section-header .eyebrow { margin-bottom: var(--space-4); }
.section-headline {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  color: var(--ink);
}

.section-body { max-width: 1040px; }
.section-body p {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--silver);
}
.section-body p + p { margin-top: var(--space-4); }

.section-ctas {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-7);
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--space-6);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--graphite); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--mist);
}
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ── Site nav ─────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-nav.is-scrolled { border-bottom-color: var(--mist); }

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 72px;
}

.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 34px; width: auto; }

.nav-primary { flex: 1; }
.nav-list { display: flex; align-items: center; gap: var(--space-2); justify-content: center; }
.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-4);
  font-size: 14px;
  font-weight: 500;
  color: var(--pale);
  border-radius: var(--radius-sm);
  transition: background 120ms ease, color 120ms ease;
}
.nav-link:hover, .nav-item--has-dropdown:hover .nav-link, .nav-link[aria-expanded="true"] { background: var(--slate); color: var(--ink); }
.nav-chevron { width: 12px; height: 12px; transition: transform 200ms ease; }
.nav-item--has-dropdown:hover .nav-chevron { transform: rotate(180deg); }

.nav-cta { height: 40px; padding: 0 var(--space-5); font-size: 14px; flex-shrink: 0; }

/* Nav dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 320px;
  padding: var(--space-2);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
/* Hover bridge: fills the 8px gap between the trigger and the dropdown
   so the cursor doesn't drop hover state crossing into the menu. */
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}
.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  transition: background 120ms ease;
}
.nav-dropdown-item:hover { background: var(--slate); }
.nav-dropdown-rail { display: block; width: 4px; border-radius: var(--radius-pill); align-self: stretch; }
.nav-dropdown-item--blockid    .nav-dropdown-rail { background: var(--blockid-deep); }
.nav-dropdown-item--blockpay   .nav-dropdown-rail { background: var(--blockpay-deep); }
.nav-dropdown-item--blocktravel .nav-dropdown-rail { background: var(--blocktravel-deep); }
.nav-dropdown-item--blocksettle .nav-dropdown-rail { background: var(--blocksettle-deep); }
.nav-dropdown-content { display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.nav-dropdown-tag { font-family: var(--font-mono); font-size: 11px; color: var(--ash); }

.nav-dropdown--simple .nav-dropdown-item { grid-template-columns: 1fr; }

.nav-dropdown-footer {
  display: block;
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--electric);
  border-top: 1px solid var(--mist);
  border-radius: var(--radius-sm);
}
.nav-dropdown-footer:hover { background: var(--slate); }

/* Mobile nav */
.nav-mobile-toggle { display: none; width: 40px; height: 40px; border-radius: var(--radius-sm); }
.nav-mobile-toggle:hover { background: var(--slate); }
.nav-mobile-toggle svg { width: 22px; height: 22px; margin: 0 auto; }

.nav-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--white);
  padding: var(--space-5);
  transform: translateX(100%);
  transition: transform 240ms ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow-y: auto;
}
.nav-mobile-drawer.is-open { transform: translateX(0); }
.nav-mobile-drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); }
.nav-mobile-section { padding: var(--space-4) 0; border-top: 1px solid var(--mist); }
.nav-mobile-section h3 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; color: var(--ash); text-transform: uppercase; margin-bottom: var(--space-3); }
.nav-mobile-section a { display: block; padding: var(--space-3) 0; font-size: 17px; font-weight: 500; color: var(--ink); }

@media (max-width: 1023px) {
  .nav-primary { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 767px) { .nav-logo img { height: 26px; } }

/* ── Hero (Section 1) ─────────────────────────────────────── */

.hero {
  padding-top: clamp(64px, 10vh, 128px);
  padding-bottom: clamp(96px, 14vh, 160px);
  border-top: none;
  position: relative;
  background: var(--white);
}
.hero-inner { max-width: 1040px; }
.hero-headline {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: var(--space-5);
}
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  color: var(--silver);
  letter-spacing: -0.005em;
  margin-bottom: var(--space-8);
  max-width: 1040px;
}
.hero-ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ── Section 2 — The problem ──────────────────────────────── */

.section-problem { background: var(--surface); }

/* ── Section 3 — The architecture ─────────────────────────── */

.section-architecture { padding-bottom: var(--space-9); }
.canvas-frame {
  margin: var(--space-7) 0 var(--space-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--mist);
}
.canvas-image { display: block; width: 100%; height: auto; }
.canvas-caption {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: 14px;
  color: var(--ash);
  text-align: center;
  margin-top: var(--space-4);
}

/* ── Section 4 — The products ─────────────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
@media (max-width: 1023px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  display: block;
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--mist);
  transition: background 160ms ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--fog); }
.product-card-mark { width: 48px; height: 48px; margin-bottom: var(--space-4); }
.product-card-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.product-card-role {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: 14px;
  color: var(--silver);
  margin-bottom: var(--space-3);
}
.product-card-cap {
  font-size: 14px;
  line-height: 1.55;
  color: var(--silver);
}

.product-card--blockid::before     { background: var(--blockid-deep); }
.product-card--blockid     .product-card-name { color: var(--blockid-deep); }
.product-card--blockpay::before    { background: var(--blockpay-deep); }
.product-card--blockpay    .product-card-name { color: var(--blockpay-deep); }
.product-card--blocktravel::before { background: var(--blocktravel-deep); }
.product-card--blocktravel .product-card-name { color: var(--blocktravel-deep); }
.product-card--blocksettle::before { background: var(--blocksettle-deep); }
.product-card--blocksettle .product-card-name { color: var(--blocksettle-deep); }

/* ── Section 5 — Who it is for ────────────────────────────── */

.section-audience { background: var(--surface); }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
@media (max-width: 768px) { .audience-grid { grid-template-columns: 1fr; } }

.audience-tile {
  padding: var(--space-7);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
}
.audience-tile-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.audience-tile-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--silver);
}
.audience-glossary {
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ash);
}

/* ── Section 6 — Standards ────────────────────────────────── */

.standards-rows { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); max-width: 1040px; }
.standards-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-5);
  align-items: start;
  padding-top: var(--space-4);
  border-top: 1px solid var(--mist);
}
.standards-row:first-child { border-top: none; padding-top: 0; }
@media (max-width: 768px) { .standards-row { grid-template-columns: 1fr; gap: var(--space-3); } }

.standards-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  padding-top: 8px;
}
.standards-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-4);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--pale);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-pill);
}
.chip-suffix {
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ember);
  padding-left: var(--space-2);
  border-left: 1px solid var(--mist);
}
.standards-body {
  margin-top: var(--space-7);
  font-size: 16px;
  line-height: 1.6;
  color: var(--silver);
  max-width: 1040px;
}
.standards-pending-note {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: italic;
  color: var(--ember);
  background: rgba(204, 74, 26, 0.06);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ── Section 7 — CTA band ─────────────────────────────────── */

.section-cta {
  background: var(--ink);
  color: var(--white);
  border-top-color: transparent;
}
.section-cta .section-headline { color: var(--white); font-weight: 500; }
.section-cta .eyebrow { color: var(--fog); }
.section-cta .section-body p { color: var(--fog); }
.section-cta .btn-primary { background: var(--white); color: var(--ink); }
.section-cta .btn-primary:hover { background: var(--mist); }
.section-cta .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.2); }
.section-cta .btn-secondary:hover { border-color: var(--white); }

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  background: var(--graphite);
  color: var(--fog);
  padding: var(--space-9) 0 var(--space-7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-col--brand { grid-column: span 1; }
@media (max-width: 1023px) { .footer-col--brand { grid-column: 1 / -1; padding-bottom: var(--space-4); border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: var(--space-3); } }

.footer-lockup { height: 32px; width: auto; margin-bottom: var(--space-4); }
.footer-tagline { font-family: var(--font-mono); font-size: 12px; color: var(--fog); letter-spacing: 0.04em; margin-bottom: var(--space-3); }
.footer-jurisdiction { font-family: var(--font-mono); font-size: 11px; color: var(--ash); }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: var(--space-4);
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-links a {
  font-size: 14px;
  color: var(--fog);
  transition: color 120ms ease;
}
.footer-links a:hover { color: var(--white); }

.footer-meta {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ash);
}

/* ── Motion: fade in on scroll ────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Product page (Template B) — additional styles
   ============================================================ */

/* ── Product hero ─────────────────────────────────────────── */

.product-hero {
  padding-top: clamp(48px, 7vh, 88px);
  padding-bottom: clamp(72px, 10vh, 128px);
  border-top: none;
  background: var(--white);
}
.product-hero-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.product-hero-mark { width: 80px; height: 80px; flex-shrink: 0; }
.product-hero-name {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: var(--space-4);
}
@media (max-width: 540px) {
  .product-hero-title-row { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .product-hero-mark { width: 62px; height: 62px; }
}
.product-hero-role {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  color: var(--silver);
  margin-bottom: var(--space-5);
}
.product-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--silver);
  margin-bottom: var(--space-7);
  max-width: 1040px;
}

/* BlockID theme — applied to <body class="theme-blockid"> */
.theme-blockid .product-hero-name { color: var(--blockid-deep); }
.theme-blockid .accent { color: var(--blockid-deep); }
.theme-blockid .accent-rail { background: var(--blockid-deep); }
.theme-blockid .accent-soft { background: var(--blockid-soft); }
.theme-blockid .eyebrow--accent { color: var(--blockid-deep); }

/* ── Inline layered architecture (Module 3) ──────────────── */

.layered-architecture {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-6);
}
.layer {
  display: grid;
  grid-template-columns: 8px 56px 1fr auto;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5) var(--space-6);
  background: var(--white);
  border-top: 1px solid var(--mist);
  transition: opacity 200ms ease, background 200ms ease;
}
.layer:first-child { border-top: none; }
.layer.is-muted { opacity: 0.42; background: var(--surface); }
.layer.is-active { background: var(--blockid-soft); }
.layer-rail { width: 8px; height: 100%; min-height: 56px; align-self: stretch; border-radius: var(--radius-xs); }
.layer--blockid     .layer-rail { background: var(--blockid-deep); }
.layer--blockpay    .layer-rail { background: var(--blockpay-deep); }
.layer--blocktravel .layer-rail { background: var(--blocktravel-deep); }
.layer--blocksettle .layer-rail { background: var(--blocksettle-deep); }
.layer-mark { width: 40px; height: 40px; }
.layer-content { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.layer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}
.layer-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.layer.is-active .layer-name        { color: var(--blockid-deep); }
.layer-tagline {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: 13px;
  color: var(--silver);
  justify-self: end;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .layer { grid-template-columns: 8px 40px 1fr; padding: var(--space-4); gap: var(--space-3); }
  .layer-tagline { display: none; }
  .layer-mark { width: 32px; height: 32px; }
}

.architecture-caption {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-style: italic;
  font-size: 14px;
  color: var(--ash);
  max-width: 1040px;
}

/* ── Capability blocks (Module 4) ─────────────────────────── */

.capability-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-7);
}
.capability-block {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--mist);
  align-items: start;
}
.capability-block:first-child { border-top: none; padding-top: 0; }
.capability-icon { width: 48px; height: 48px; flex-shrink: 0; }
.capability-icon-frame {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--blockid-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.capability-icon-frame svg { width: 24px; height: 24px; color: var(--blockid-deep); }
.capability-block-content { max-width: 720px; }
.capability-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-3);
  color: var(--ink);
}
.capability-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--silver);
}
@media (max-width: 540px) {
  .capability-block { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ── Integration section (Module 6) ───────────────────────── */

.integration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
  margin-top: var(--space-6);
}
@media (max-width: 900px) { .integration-grid { grid-template-columns: 1fr; } }

.integration-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--silver);
  margin-bottom: var(--space-4);
}
.integration-cta { margin-top: var(--space-5); }

.integration-diagram {
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.integration-diagram-svg { width: 100%; height: auto; display: block; }
.integration-diagram-pending {
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: italic;
  color: var(--ash);
  text-align: center;
  padding-top: var(--space-2);
  border-top: 1px solid var(--mist);
  margin-top: var(--space-2);
}

/* ── Related use cases strip (Module 7) ───────────────────── */

.use-case-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (max-width: 1180px) { .use-case-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .use-case-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .use-case-strip { grid-template-columns: 1fr; } }

.use-case-card {
  display: block;
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.use-case-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--fog); }
.use-case-products {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-3);
}
.use-case-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.use-case-dot--blockid     { background: var(--blockid-deep); }
.use-case-dot--blockpay    { background: var(--blockpay-deep); }
.use-case-dot--blocktravel { background: var(--blocktravel-deep); }
.use-case-dot--blocksettle { background: var(--blocksettle-deep); }
.use-case-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
  color: var(--ink);
  line-height: 1.25;
}
.use-case-tag {
  font-size: 13px;
  line-height: 1.5;
  color: var(--silver);
}

/* ── Cross-product strip (Module 8) ───────────────────────── */

.cross-product-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
@media (max-width: 800px) { .cross-product-strip { grid-template-columns: 1fr; } }

.cross-product-card {
  display: block;
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.cross-product-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--mist);
  transition: background 160ms ease;
}
.cross-product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--fog); }
.cross-product-card--blockpay::before    { background: var(--blockpay-deep); }
.cross-product-card--blockpay    .cross-product-name { color: var(--blockpay-deep); }
.cross-product-card--blocktravel::before { background: var(--blocktravel-deep); }
.cross-product-card--blocktravel .cross-product-name { color: var(--blocktravel-deep); }
.cross-product-card--blocksettle::before { background: var(--blocksettle-deep); }
.cross-product-card--blocksettle .cross-product-name { color: var(--blocksettle-deep); }
.cross-product-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.cross-product-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--silver);
}

/* ============================================================
   Use case page (Template C) — additional styles
   ============================================================ */

/* ── Use case hero ────────────────────────────────────────── */

.use-case-hero {
  padding-top: clamp(48px, 7vh, 88px);
  padding-bottom: clamp(64px, 9vh, 112px);
  border-top: none;
  background: var(--white);
}
.use-case-hero-marks {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.use-case-hero-mark {
  width: 56px;
  height: 56px;
}
.use-case-hero-marks-divider {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--mist);
}
.use-case-hero-name {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--ink);
  margin-bottom: var(--space-5);
}
.use-case-hero-problem {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 500;
  color: var(--silver);
  letter-spacing: -0.005em;
  margin-bottom: var(--space-3);
  max-width: 1040px;
}
.use-case-hero-audience {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: 14px;
  color: var(--ash);
  margin-bottom: var(--space-7);
  max-width: 1040px;
}

/* ── Solution steps (Template C Module 3) ─────────────────── */

.solution-steps {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-7);
}
.solution-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--mist);
  align-items: start;
}
.solution-step:first-child { border-top: none; padding-top: 0; }
.solution-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: var(--slate);
  color: var(--ash);
  flex-shrink: 0;
}
.solution-step-content { max-width: 720px; }
.solution-step-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.solution-step-tag--blockid     { color: var(--blockid-deep); }
.solution-step-tag--blockpay    { color: var(--blockpay-deep); }
.solution-step-tag--blocktravel { color: var(--blocktravel-deep); }
.solution-step-tag--blocksettle { color: var(--blocksettle-deep); }
.solution-step-tag--combined    { color: var(--ash); }
.solution-step-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-3);
  color: var(--ink);
}
.solution-step-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--silver);
}
@media (max-width: 540px) {
  .solution-step { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ── Related products (Template C Module 6) ───────────────── */

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
@media (max-width: 800px) { .related-products-grid { grid-template-columns: 1fr; } }
.related-products-grid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1023px) { .related-products-grid--three { grid-template-columns: 1fr; } }

.related-product-card {
  display: block;
  padding: var(--space-7);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.related-product-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--mist);
}
.related-product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-product-card--blockid::before     { background: var(--blockid-deep); }
.related-product-card--blockpay::before    { background: var(--blockpay-deep); }
.related-product-card--blocktravel::before { background: var(--blocktravel-deep); }
.related-product-card--blocksettle::before { background: var(--blocksettle-deep); }

.related-product-mark { width: 48px; height: 48px; margin-bottom: var(--space-5); }
.related-product-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.related-product-card--blockid     .related-product-name { color: var(--blockid-deep); }
.related-product-card--blockpay    .related-product-name { color: var(--blockpay-deep); }
.related-product-card--blocktravel .related-product-name { color: var(--blocktravel-deep); }
.related-product-card--blocksettle .related-product-name { color: var(--blocksettle-deep); }
.related-product-role {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: 14px;
  color: var(--silver);
  margin-bottom: var(--space-4);
}
.related-product-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--silver);
  margin-bottom: var(--space-5);
}
.related-product-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap 160ms ease;
}
.related-product-card:hover .related-product-link { gap: 12px; }

/* Multiple-active layer support — already handled via layer.is-active class which any layer can have */

/* ============================================================
   Resources pages (Template D) — additional styles
   ============================================================ */

/* ── White paper list (index page) ────────────────────────── */

.wp-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-7);
}
.wp-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-7);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  align-items: start;
}
.wp-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--fog); }
.wp-meta { display: flex; flex-direction: column; gap: var(--space-2); }
.wp-date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}
.wp-topic {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--electric);
}
.wp-content { max-width: 640px; }
.wp-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-3);
  color: var(--ink);
  line-height: 1.3;
}
.wp-abstract {
  font-size: 15px;
  line-height: 1.6;
  color: var(--silver);
}
.wp-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap 160ms ease;
}
.wp-cta::after { content: '→'; }
.wp-item:hover .wp-cta { gap: 12px; }
@media (max-width: 800px) {
  .wp-item { grid-template-columns: 1fr; gap: var(--space-3); padding: var(--space-5); }
  .wp-cta { align-self: start; margin-top: var(--space-2); }
}

/* ── Forthcoming / status chip ────────────────────────────── */

.forthcoming-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  background: rgba(204, 74, 26, 0.08);
  border-radius: var(--radius-pill);
}

/* Standalone callout for "this page is populating" pre-publish state */
.publishing-note {
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--mist);
  border-left: 3px solid var(--ember);
  border-radius: var(--radius-md);
}
.publishing-note-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: var(--space-2);
}
.publishing-note-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--silver);
}

/* ── Resource hub cards (Resources index) ─────────────────── */

.resource-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
@media (max-width: 800px) { .resource-hub-grid { grid-template-columns: 1fr; } }

.resource-hub-card {
  display: block;
  padding: var(--space-7);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.resource-hub-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--electric);
}
.resource-hub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--fog); }
.resource-hub-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: var(--space-3);
}
.resource-hub-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.resource-hub-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--silver);
  margin-bottom: var(--space-5);
}
.resource-hub-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap 160ms ease;
}
.resource-hub-card:hover .resource-hub-link { gap: 12px; }

/* ============================================================
   API documentation page — additional styles
   ============================================================ */

.api-status-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--electric);
  background: rgba(0, 107, 130, 0.08);
  border: 1px solid rgba(0, 107, 130, 0.2);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-5);
}

.endpoint-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-5);
}
.endpoint-item {
  display: grid;
  grid-template-columns: 80px minmax(220px, 1.1fr) 2fr;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--mist);
  background: var(--white);
}
.endpoint-item:first-child { border-top: none; }
.method-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.method-badge--get  { background: rgba(15, 110, 86, 0.1); color: var(--blockid-deep); }
.method-badge--post { background: rgba(24, 95, 165, 0.1); color: var(--blockpay-deep); }
.method-badge--del  { background: rgba(204, 74, 26, 0.1); color: var(--ember); }
.endpoint-path {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.endpoint-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--silver);
}
@media (max-width: 800px) {
  .endpoint-item { grid-template-columns: 1fr; gap: var(--space-2); }
}

.code-inline {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 1px var(--space-2);
  background: var(--slate);
  border-radius: var(--radius-xs);
  color: var(--ink);
}

.code-block {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  padding: var(--space-5);
  background: var(--ink);
  color: var(--mist);
  border-radius: var(--radius-md);
  overflow-x: auto;
  white-space: pre;
  margin: var(--space-4) 0;
}
.code-block .code-comment { color: var(--ash); }
.code-block .code-key     { color: var(--blocktravel-solid); }
.code-block .code-string  { color: var(--blockid-solid); }

.api-section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}
@media (max-width: 800px) { .api-section-grid { grid-template-columns: 1fr; } }
.api-section-block {
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
}
.api-section-block-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  color: var(--ink);
}
.api-section-block-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--silver);
}

/* ============================================================
   Contact page — form styles
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-9);
  align-items: start;
  margin-top: var(--space-7);
}
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-7); } }

.contact-form { display: flex; flex-direction: column; gap: var(--space-5); }

.form-row { display: flex; flex-direction: column; gap: var(--space-2); }
.form-row--two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 600px) { .form-row--two { grid-template-columns: 1fr; } }

.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.form-label-optional {
  color: var(--fog);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  transition: border-color 120ms ease, box-shadow 120ms ease;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(0, 107, 130, 0.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--fog); }

.form-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 4l4 4 4-4' stroke='%237A8499' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}

.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}
.form-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--electric);
  cursor: pointer;
}
.form-checkbox-label {
  font-size: 14px;
  line-height: 1.55;
  color: var(--silver);
  cursor: pointer;
}

.form-helper {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ash);
  margin-top: var(--space-1);
}

.form-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}

/* Contact side panel */
.contact-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-7);
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  position: sticky;
  top: 96px;
}
@media (max-width: 1023px) { .contact-side { position: static; } }
.contact-side-block-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: var(--space-3);
}
.contact-side-block-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--silver);
}
.contact-side-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  display: inline-block;
  border-bottom: 1px solid var(--mist);
  padding-bottom: 1px;
  transition: border-color 120ms ease;
}
.contact-side-link:hover { border-color: var(--ink); }

/* Form thank-you state (toggled via JS) */
.form-success {
  display: none;
  padding: var(--space-7);
  background: var(--blockid-soft);
  border: 1px solid var(--blockid-deep);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}
.form-success.is-visible { display: block; }
.form-success-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blockid-deep);
  margin-bottom: var(--space-3);
}
.form-success-body { font-size: 15px; line-height: 1.6; color: var(--ink); }

/* ── Skip link (accessibility) ────────────────────────────── */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  z-index: 100;
}
.skip-link:focus { left: var(--space-4); }
