/* ==========================================================
   PATTERN PAGE · per-cell page for /cases/:slug
   ========================================================== */

/* ============ Breadcrumb ============ */
.pcrumb { background: #fff; border-bottom: 1px solid var(--hairline); }
.pcrumb-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 14px 56px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 13px; color: var(--ink-3);
}
.pcrumb-inner a { color: var(--ink-3); text-decoration: none; font-weight: 500; }
.pcrumb-inner a:hover { color: var(--brand-purple); }
.pcrumb-inner .sep { color: var(--ink-4); }
.pcrumb-inner .crumb-ind { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-1); font-weight: 600; }
.pcrumb-inner .crumb-bar { width: 3px; height: 14px; background: var(--ind-color); border-radius: 2px; }
.pcrumb-inner .crumb-dom { color: var(--ink-1); font-weight: 600; }

/* ============ Hero ============ */
.phero {
  padding: 80px 56px 96px;
  background: linear-gradient(180deg, #FAFAF8 0%, #fff 100%);
  border-bottom: 1px solid var(--hairline);
}
.phero-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: start;
}
.phero-kicker { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.phero-stage { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.phero-path { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--ink-4); }
.phero-h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(48px, 6.5vw, 88px); line-height: 0.98; letter-spacing: -0.035em;
  color: var(--ink-1); margin: 0 0 26px;
  text-wrap: balance;
}
.phero-one { font-size: 20px; line-height: 1.45; color: var(--ink-2); margin: 0 0 40px; max-width: 600px; }
.phero-cta-row { display: flex; gap: 16px; align-items: center; }
.phero-cta-row .primary {
  background: var(--ink-1); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 10px; text-decoration: none;
}
.phero-cta-row .primary:hover { background: var(--ind-color); }
.phero-cta-row .ghost { color: var(--ink-2); font-family: var(--font-display); font-weight: 600; font-size: 14px; text-decoration: none; }
.phero-cta-row .ghost:hover { color: var(--brand-purple); }

.phero-right { padding-top: 12px; }
.phero-trigger {
  border-left: 3px solid var(--ind-color);
  padding: 8px 0 8px 22px;
}
.phero-trig-label { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ind-color); font-weight: 600; margin-bottom: 12px; }
.phero-trig-body { font-family: var(--font-display); font-size: 22px; line-height: 1.35; color: var(--ink-1); font-weight: 500; letter-spacing: -0.01em; }

/* ============ Anatomy ============ */
.panatomy { padding: 100px 56px; background: #fff; }
.panatomy-inner { max-width: 1320px; margin: 0 auto; }
.panatomy-head { margin-bottom: 56px; max-width: 820px; }
.panatomy-head .section-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink-1); margin: 10px 0 18px; }
.panatomy-head .lede-sub { font-size: 17px; line-height: 1.55; color: var(--ink-3); }

.panatomy-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr auto 1fr;
  gap: 24px;
  align-items: start;
}
.pa-col {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 24px;
  background: #fff;
  min-height: 320px;
}
.pa-col.pa-agent {
  background: linear-gradient(180deg, #FFF7EF 0%, #FFE4EE 100%);
  border-color: var(--brand-orange);
  position: relative;
}
.pa-col.pa-agent::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #FB993F, #F83C72, #A78BFA);
  border-radius: 14px 14px 0 0;
}
.pa-label {
  font-family: var(--font-display); font-weight: 600; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 18px;
}
.pa-col.pa-agent .pa-label { color: var(--brand-purple); }
.pa-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pa-col ul li { font-size: 14px; line-height: 1.45; color: var(--ink-2); padding-left: 16px; position: relative; }
.pa-col ul li::before { content: '·'; position: absolute; left: 0; color: var(--ink-4); }

.pa-col.pa-agent ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.pa-col.pa-agent ol li { display: flex; gap: 14px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.pa-step-n {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--brand-purple); font-weight: 600;
  padding-top: 2px; flex-shrink: 0;
}

/* ============ TRACKING SANDBOX EXTENSIONS ============ */
.track-timeline {
  display: flex; flex-direction: column; gap: 0;
  margin: 16px 0 20px;
  border-left: 2px dashed var(--hairline);
  padding-left: 0;
  position: relative;
}
.tt-event {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 10px 0 10px 18px;
  position: relative;
  border-left: 2px solid var(--hairline);
  margin-left: 6px;
}
.tt-event.issue { border-left-color: var(--tint-pink-deep, #F83C72); }
.tt-event .tt-dot {
  position: absolute; left: -6px; top: 14px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink-3);
}
.tt-event.issue .tt-dot { border-color: var(--tint-pink-deep, #F83C72); background: var(--tint-pink-deep, #F83C72); }
.tt-body { flex: 1; }
.tt-t {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-4); font-weight: 500; letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.tt-ev { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.tt-event.issue .tt-ev { color: var(--ink-1); font-weight: 500; }

.track-action {
  background: #FFF3E4;
  border: 1px solid #FDE4C7;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.track-action-label {
  font-family: var(--font-display); font-weight: 600; font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-orange); margin-bottom: 6px;
}
.track-action-body { font-size: 13px; color: var(--ink-1); line-height: 1.5; }

.track-concept {
  background: #FAFAF8;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.track-concept-label {
  font-family: var(--font-display); font-weight: 600; font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 8px;
}
.track-concept-body {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-2); line-height: 1.55;
  white-space: pre-wrap; margin: 0;
  max-height: 240px; overflow-y: auto;
}

.pa-sublabel {
  font-family: var(--font-display); font-weight: 600; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4);
  margin: 24px 0 14px; padding-top: 16px; border-top: 1px dashed var(--hairline);
}
.pa-humans li::before { content: '○'; }

.pa-arrow { font-family: var(--font-display); font-size: 24px; color: var(--ink-4); padding-top: 140px; font-weight: 300; }

/* ============ FLOW (anatomy viz) ============ */
.flow { position: relative; }
.flow-track {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: stretch;
  gap: 24px;
  position: relative;
}

/* Column head: 40px circle + label, aligned flush-left */
.flow-col { position: relative; }
.flow-col-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
  padding: 0 8px;
}
.flow-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink-4);
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; flex-shrink: 0;
}
.flow-num-agent {
  border: 0;
  background: var(--grad-full);
  background-clip: border-box;
  color: #fff;
  box-shadow: 0 6px 20px rgba(248,60,114,0.25);
}
.flow-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 20px; letter-spacing: -0.01em; color: var(--ink-1);
}
.flow-agent-head .flow-name {
  background: var(--grad-full);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 22px;
}

/* Inputs & Outputs: chip stacks, aligned with head */
.flow-chips {
  display: flex; flex-direction: column; gap: 10px;
  padding: 0 8px;
}
.flow-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  font-size: 13px; line-height: 1.4;
  color: var(--ink-2); font-weight: 500;
  transition: transform 0.2s, border-color 0.2s;
}
.flow-chip:hover { transform: translateX(2px); border-color: var(--ink-4); }
.flow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-1); flex-shrink: 0;
}
.flow-chip-out .flow-check {
  width: 18px; height: 18px; border-radius: 50%;
  background: #10B981; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}

/* Agent: dominant center column */
.flow-agent {
  background: linear-gradient(180deg, #FFFBF5 0%, #FDF2F8 100%);
  border-radius: 20px;
  padding: 28px 28px 32px;
  position: relative;
  border: 1px solid rgba(248,60,114,0.12);
  box-shadow: 0 20px 60px rgba(248,60,114,0.05);
}
.flow-agent::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-full);
  border-radius: 20px 20px 0 0;
}
.flow-agent .flow-col-head { padding: 0; margin-bottom: 22px; }
.flow-agent-head .flow-num-agent { margin-left: -5px; }

/* Rail: perfectly centered on the step markers */
.flow-rail { position: relative; padding-left: 44px; }
.flow-rail-line {
  position: absolute;
  left: 15px;
  top: 14px; bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg,
    var(--brand-orange) 0%,
    var(--brand-pink) 50%,
    var(--brand-purple) 100%);
  opacity: 0.35;
  border-radius: 2px;
}
.flow-step {
  display: flex; align-items: center; gap: 14px;
  padding: 6px 0;
  position: relative;
}
.flow-step + .flow-step { margin-top: 4px; }
.flow-step-marker {
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--brand-purple);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-left: -44px;
  z-index: 1;
  box-shadow: 0 0 0 4px #FDF2F8;
}
.flow-step-n {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: var(--brand-purple);
  letter-spacing: 0.02em;
  line-height: 1;
}
.flow-step-body {
  font-size: 14px; line-height: 1.5;
  color: var(--ink-1); font-weight: 500;
}

@media (max-width: 900px) {
  .flow-track { grid-template-columns: 1fr; gap: 28px; }
}

/* KPI block — reusable template under flow-track.
   Same card vocab as .flow-agent: off-white gradient bg, orange-pink hairline top. */
.flow-kpi {
  position: relative;
  margin-top: 32px;
  padding: 44px 40px 36px;
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFBF5 0%, #FDF2F8 100%);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(248,60,114,0.04);
}
.flow-kpi::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-full);
  border-radius: 18px 18px 0 0;
}
.flow-kpi-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 5.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad-full);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.flow-kpi-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  max-width: 580px;
  margin: 0 auto 14px;
  text-wrap: balance;
}
.flow-kpi-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 560px;
  margin: 0 auto 18px;
}
.flow-kpi-source {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-4);
  font-style: italic;
}
@media (max-width: 700px) {
  .flow-kpi { padding: 44px 24px 36px; margin-top: 24px; }
  .flow-kpi-body { font-size: 15px; }
}

/* ============ Spotlight ============ */
.pspotlight {
  padding: 100px 56px;
  background: var(--canvas-alt);
}
.pspot-inner { max-width: 1320px; margin: 0 auto; }
.pspot-label { margin-bottom: 32px; }
.pspot-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 48px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px;
  position: relative; overflow: hidden;
}
.pspot-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--ind-color);
}
.pspot-brand { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.pspot-logo {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--grad-full);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 24px;
  color: #fff;
}
.pspot-name { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; color: var(--ink-1); line-height: 1.1; }
.pspot-agent { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); margin-top: 4px; }
.pspot-tag { font-family: var(--font-display); font-size: 22px; line-height: 1.35; color: var(--ink-1); font-weight: 500; letter-spacing: -0.01em; margin-bottom: 28px; text-wrap: balance; }
.pspot-quote {
  font-family: var(--font-display); font-size: 18px; line-height: 1.5;
  color: var(--ink-2); font-style: italic; font-weight: 400;
  border-left: 3px solid var(--ind-color); padding-left: 20px;
  margin: 0;
}
.pspot-quote cite {
  display: block; margin-top: 12px;
  font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink-4);
  letter-spacing: 0.04em;
}

.pspot-right {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 32px;
  border-left: 1px solid var(--hairline);
  padding-left: 48px;
}
.pspot-stats { display: flex; flex-direction: column; gap: 28px; }
.pspot-stat .n { font-family: var(--font-display); font-weight: 600; font-size: 42px; color: var(--ink-1); line-height: 1; letter-spacing: -0.02em; }
.pspot-stat .l { font-family: var(--font-display); font-size: 13px; color: var(--ink-3); margin-top: 6px; font-weight: 500; }

.pspot-cta {
  display: inline-flex; align-self: flex-start;
  background: var(--ink-1); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 13px 22px; border-radius: 10px; text-decoration: none;
}
.pspot-cta:hover { background: var(--ind-color); }

/* ============ Variations ============ */
.pvariations { padding: 80px 56px; background: #fff; }
.pvar-inner { max-width: 1320px; margin: 0 auto; }
.pvar-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink-1); margin: 10px 0 32px; }
.pvar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pvar-card { background: #fff; border: 1px solid var(--hairline); border-radius: 12px; padding: 24px; position: relative; }
.pvar-bar { position: absolute; top: 0; left: 24px; right: 24px; height: 3px; background: var(--ind-color); border-radius: 0 0 3px 3px; }
.pvar-ind { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; margin-top: 4px; }
.pvar-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink-1); letter-spacing: -0.01em; margin: 10px 0 8px; }
.pvar-tag { font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.pvar-note {
  background: var(--canvas-alt); border-radius: 14px; padding: 32px 36px;
}
.pvar-note-label { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px; }
.pvar-note p { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 760px; }

/* ============ Related ============ */
.prelated { padding: 100px 56px; background: var(--canvas-alt); border-top: 1px solid var(--hairline); }
.prel-inner { max-width: 1320px; margin: 0 auto; }
.prel-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink-1); margin: 10px 0 32px; }
.prel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prel-card {
  background: #fff; border: 1px solid var(--hairline); border-radius: 12px;
  padding: 22px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 190px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.prel-card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,0.06); }
.prel-path { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ind-color); font-weight: 600; }
.prel-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--ink-1); line-height: 1.2; }
.prel-one { font-size: 13px; line-height: 1.5; color: var(--ink-3); flex: 1; }
.prel-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--hairline); }
.prel-stage { font-family: var(--font-display); font-weight: 600; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.prel-arr { font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--ind-color); }
.prel-foot-link { margin-top: 28px; text-align: center; }
.prel-foot-link a { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--brand-purple); text-decoration: none; }
.prel-foot-link a:hover { text-decoration: underline; }

/* ============ Sandbox client-frame strip ============ */
.sbframe {
  padding: 56px 56px 0;
  background: var(--canvas-alt);
}
/* Tight variant — sits directly under the sandbox with minimal gap */
.sbframe.sbframe-tight {
  padding: 0 56px 88px;
  margin-top: -40px;
  background: var(--canvas-alt);
}
.sbframe.sbframe-tight .sbframe-wrap {
  max-width: 980px;
  padding: 22px 28px;
}
/* Reverse-direction reference (case page → use case page).
   Sits between the footer-CTA and dark foot-meta, so it needs its own padding. */
.sbframe.sbframe-reverse {
  padding: 0 56px 88px;
  background: var(--canvas);
}
.sbframe-wrap {
  max-width: 1320px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex; align-items: center; gap: 32px;
  position: relative; overflow: hidden;
}
.sbframe-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: var(--grad-full);
}
.sbframe-left { flex: 1; }
.sbframe-label {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 8px;
}
.sbframe-h {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; line-height: 1.2; color: var(--ink-1);
  letter-spacing: -0.01em; margin: 0 0 6px;
}
.sbframe-p {
  font-size: 14px; line-height: 1.55; color: var(--ink-3); margin: 0;
  max-width: 640px;
}
.sbframe-link {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--brand-purple); text-decoration: none;
  padding: 12px 20px; border: 1px solid var(--brand-purple);
  border-radius: 10px; white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.sbframe-link:hover { background: var(--brand-purple); color: #fff; }
@media (max-width: 900px) {
  .sbframe-wrap { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; }
  .sbframe.sbframe-reverse { padding: 0 24px 56px; }
}

/* ============ Op-maat block (voor concept-patronen) ============ */
.opmaat { padding: 100px 56px; background: var(--canvas-alt); border-top: 1px solid var(--hairline); }
.opmaat-wrap { max-width: 1320px; margin: 0 auto; }
.opmaat-head { max-width: 820px; margin-bottom: 48px; }
.eyebrow-big {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-purple);
  margin-bottom: 18px;
}
.eyebrow-big .bar { width: 24px; height: 3px; background: var(--brand-purple); border-radius: 2px; }
.opmaat-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 4vw, 52px); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--ink-1); margin: 0 0 20px;
  text-wrap: balance;
}
.opmaat-lede { font-size: 17px; line-height: 1.6; color: var(--ink-3); margin: 0; max-width: 680px; }
.opmaat-lede strong { color: var(--ink-1); font-weight: 600; }

.opmaat-cards { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.opmaat-card {
  background: #fff; border: 1px solid var(--hairline); border-radius: 16px;
  padding: 36px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.opmaat-card-label {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 18px;
}
.opmaat-steps { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 16px; counter-reset: step; }
.opmaat-steps li {
  font-size: 15px; line-height: 1.5; color: var(--ink-2);
  padding-left: 28px; position: relative;
  counter-increment: step;
}
.opmaat-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink-1); color: #fff;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.opmaat-steps li strong { color: var(--ink-1); font-weight: 600; }
.opmaat-cta-btn {
  align-self: flex-start; margin-top: auto;
  background: var(--ink-1); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 13px 22px; border-radius: 10px; text-decoration: none;
  transition: background 0.2s;
}
.opmaat-cta-btn:hover { background: var(--brand-purple); }

.opmaat-related-card {
  background: linear-gradient(180deg, #fff 0%, #FAFAF8 100%);
  position: relative; overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}
.opmaat-related-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-full);
}
.opmaat-related-card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,0.06); }
.opmaat-related-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.opmaat-related-av {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad-full); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  flex-shrink: 0;
}
.opmaat-related-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink-1); letter-spacing: -0.01em; }
.opmaat-related-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.opmaat-related-stage {
  margin-left: auto;
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  color: #10B981;
  letter-spacing: 0.05em;
}
.opmaat-related-why { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0 0 24px; flex: 1; }
.opmaat-related-arr { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--brand-purple); }

/* ============ Foot CTA ============ */
.pfoot {
  padding: 100px 56px 60px;
  background: var(--canvas-alt); color: var(--ink-1);
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.pfoot h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 5vw, 64px); line-height: 1.05;
  letter-spacing: -0.025em; margin: 0 auto 22px;
  max-width: 900px; text-wrap: balance;
  color: var(--ink-1);
}
.pfoot h2 .grad {
  background: var(--grad-full);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.pfoot p {
  font-size: 17px; line-height: 1.55; color: var(--ink-3);
  max-width: 640px; margin: 0 auto 36px;
}
.pfoot-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.pfoot-row .btn-primary {
  background: var(--ink-1); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 10px; text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.pfoot-row .btn-primary:hover { transform: translateY(-1px); background: var(--ind-color, var(--brand-purple)); }
.pfoot-row .btn-ghost {
  color: var(--ink-2);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 14px 20px; text-decoration: none;
  border: 1px solid var(--hairline); border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s, color 0.2s;
}
.pfoot-row .btn-ghost:hover { border-color: var(--ink-1); color: var(--ink-1); }
.pfoot-meta {
  max-width: 1320px; margin: 80px auto 0; padding-top: 32px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: 13px;
  color: var(--ink-4);
}
.pfoot-meta .brand { font-weight: 600; font-size: 16px; color: var(--ink-1); letter-spacing: -0.02em; }

@media (max-width: 1000px) {
  .opmaat-cards { grid-template-columns: 1fr; }
  .pfoot-meta { flex-direction: column; gap: 12px; text-align: center; }
}

/* Responsive */
@media (max-width: 1100px) {
  .phero-inner { grid-template-columns: 1fr; gap: 40px; }
  .panatomy-grid { grid-template-columns: 1fr; }
  .pa-arrow { display: none; }
  .pspot-card { grid-template-columns: 1fr; gap: 40px; padding: 32px; }
  .pspot-right { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 32px; }
  .pvar-grid, .prel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .topribbon { padding: 10px 16px; gap: 10px; flex-wrap: nowrap; }
  .topribbon nav { display: none; }
  .topribbon .right { margin-left: auto; gap: 10px; }
  .topribbon .lang { display: none; }
  .phero, .panatomy, .pspotlight, .pvariations, .prelated, .opmaat { padding-left: 20px; padding-right: 20px; }
  .pcrumb-inner { padding-left: 20px; padding-right: 20px; flex-wrap: wrap; gap: 8px; font-size: 12px; }
  .phero { padding-top: 48px; padding-bottom: 48px; }
  .phero-h1 { font-size: clamp(30px, 7.5vw, 38px); line-height: 1.05; }
  .phero-one { font-size: 16px; }
  .phero-kicker { font-size: 11px; }
  .phero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .phero-cta-row > * { width: 100%; justify-content: center; }
  .phero-trigger { padding: 20px; }
  .phero-trig-label { font-size: 11px; }
  .phero-trig-body { font-size: 15px; }
  .panatomy, .pspotlight, .pvariations, .prelated, .opmaat { padding-top: 56px; padding-bottom: 56px; }
  .panatomy-head h2, .pspot-card h2, .pvariations h2, .prelated h2, .opmaat-head h2 { font-size: 26px; line-height: 1.1; }
  .flow-track { gap: 24px; }
  .flow-step-body { font-size: 14px; }
  .pa-col { padding: 20px; }
  .pspot-card { padding: 24px; }
  .pspot-quote { font-size: 18px; line-height: 1.35; }
  .opmaat-cards { grid-template-columns: 1fr; gap: 12px; }
  .opmaat-card { padding: 22px; }
  .opmaat-related-card { padding: 18px; }
  .pfoot-meta { padding: 20px; }
  .pfoot-row { flex-direction: column; gap: 8px; text-align: center; padding: 20px; }
  .prel-card { padding: 22px; }

  /* sbframe — intro strip above the sandbox */
  .sbframe { padding: 32px 20px 0; }
  .sbframe.sbframe-tight { padding: 0 20px 56px; margin-top: -24px; }
  .sbframe-wrap { padding: 18px; gap: 12px; border-radius: 12px; }
  .sbframe-wrap::before { width: 3px; }
  .sbframe-h { font-size: 17px; line-height: 1.25; }
  .sbframe-p { font-size: 13px; line-height: 1.5; }
  .sbframe-link { font-size: 13px; padding: 10px 14px; align-self: stretch; text-align: center; }

  /* Tracking-sandbox extensions */
  .track-timeline { margin: 12px 0 16px; }
  .tt-event { padding: 9px 0 9px 14px; gap: 10px; }
  .tt-t { font-size: 10px; }
  .tt-ev { font-size: 12px; line-height: 1.4; }
  .track-action { padding: 12px 14px; }
  .track-action-body { font-size: 12px; line-height: 1.45; }
  .track-concept { padding: 12px 14px; }
  .track-concept-body { font-size: 11px; line-height: 1.5; max-height: 200px; }

  /* Anatomy panel — tighter on mobile */
  .panatomy-head { margin-bottom: 28px; }
  .panatomy-head .lede-sub { font-size: 15px; }
  .panatomy-grid { gap: 14px; }
  .pa-col { min-height: 0; padding: 18px; }
  .pa-col ul li { font-size: 13px; line-height: 1.45; }
  .pa-sublabel { margin: 18px 0 12px; padding-top: 14px; }

  /* Flow viz — tighter on mobile */
  .flow-track { gap: 18px; }
  .flow-col-head { gap: 12px; margin-bottom: 16px; padding: 0; }
  .flow-num { width: 32px; height: 32px; font-size: 11px; }
  .flow-name { font-size: 17px; }
  .flow-agent-head .flow-name { font-size: 19px; }
  .flow-agent { padding: 20px 18px 22px; border-radius: 16px; }
  .flow-rail { padding-left: 36px; }
  .flow-rail-line { left: 12px; top: 18px; bottom: 18px; }
  .flow-step-marker { width: 26px; height: 26px; margin-left: -36px; }
  .flow-step-n { font-size: 9px; }
  .flow-step-body { font-size: 13px; line-height: 1.45; }
  .flow-chips { gap: 8px; padding: 0; }
  .flow-chip { padding: 12px 14px; font-size: 13px; line-height: 1.4; }

  /* Op-maat steps tighter */
  .opmaat-head { margin-bottom: 28px; }
  .opmaat-lede { font-size: 15px; line-height: 1.55; }
  .opmaat-steps { gap: 12px; margin-bottom: 22px; }
  .opmaat-steps li { font-size: 14px; line-height: 1.45; padding-left: 26px; }
  .opmaat-steps li::before { width: 18px; height: 18px; font-size: 10px; }
  .opmaat-cta-btn { width: 100%; text-align: center; padding: 12px 16px; }
  .opmaat-related-top { gap: 10px; margin-bottom: 14px; }
  .opmaat-related-av { width: 38px; height: 38px; font-size: 16px; }
  .opmaat-related-name { font-size: 16px; }
  .opmaat-related-meta { font-size: 10px; }
  .opmaat-related-stage { font-size: 10px; }
  .opmaat-related-why { font-size: 13px; line-height: 1.5; margin-bottom: 16px; }

  /* Foot CTA */
  .pfoot { padding: 64px 20px 40px; }
  .pfoot p { font-size: 15px; }
  .pfoot-meta { margin-top: 48px; padding: 24px 0 0; border: 0; border-top: 1px solid var(--hairline); }
}
