/* ============================================================
   ATMOSLY HOMEPAGE — v2 additions
   (loads after home.css; reuses tokens + section shells)
   ============================================================ */

/* ---------- WORKFLOW LOOP — single unified visualization ---------- */
.workflow {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.workflow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 500px at 10% 30%, rgba(46,107,255,0.05), transparent 60%),
    radial-gradient(700px 500px at 90% 70%, rgba(16,185,129,0.04), transparent 60%);
  pointer-events: none;
}
.workflow .container { position: relative; }

.wf-frame {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto auto;
  gap: 24px 36px;
  align-items: start;
}

/* External: your repos box (top-left) */
.wf-repos {
  background: #fff;
  border: 1px solid var(--line-1);
  border-radius: 14px;
  padding: 18px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}
.wf-repos-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: #0F172A;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.wf-repos-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wf-repos-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.wf-repos-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1.2;
}
.wf-repos-sub {
  font-size: 10px;
  color: var(--ink-3);
}

/* In-arrow: code flows from repo into platform */
.wf-in-arrow {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  padding-top: 4px;
}
.wf-arrow-line {
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom, var(--brand-1), var(--brand-2));
  border-radius: 1px;
}
.wf-arrow-label {
  font-size: 10px;
  color: var(--brand-1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 6px 0 4px;
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 4px;
}
.wf-arrow-head {
  color: var(--brand-1);
  font-size: 14px;
  line-height: 1;
}

/* THE PLATFORM BOX (right column, spans both rows) */
.wf-platform {
  grid-column: 2;
  grid-row: 1 / span 2;
  background: linear-gradient(180deg, #fff 0%, #F8FAFF 100%);
  border: 2px solid rgba(46,107,255,0.18);
  border-radius: var(--radius-xl);
  padding: 32px 32px 24px;
  position: relative;
  box-shadow: 0 24px 60px -24px rgba(46,107,255,0.20);
}
.wf-platform-brand {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 4px 16px;
  border-radius: 999px;
  border: 1px solid rgba(46,107,255,0.22);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-1);
  box-shadow: var(--shadow-sm);
}
.wf-pb-logo {
  width: 16px; height: 16px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.wf-pb-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: none;
  border-left: 1px solid var(--line-1);
  padding-left: 10px;
}

/* CI/CD or SRE half */
.wf-half {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  margin-bottom: 12px;
  align-items: center;
}
.wf-half-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid #C9D8FB;
}
.wf-half-bot .wf-half-label {
  background: linear-gradient(180deg, rgba(16,185,129,0.10) 0%, rgba(16,185,129,0.04) 100%);
  border-color: rgba(16,185,129,0.30);
}
.wf-half-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-1);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.wf-half-tag-sre { color: var(--ok); }
.wf-half-dir {
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.wf-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}
.wf-step {
  background: #fff;
  border: 1px solid var(--line-1);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  min-height: 92px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.wf-step:hover {
  transform: translateY(-2px);
  border-color: var(--brand-1);
  box-shadow: var(--shadow-md);
}
.wf-step-num {
  font-size: 9px;
  color: var(--brand-1);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.wf-step-icon {
  font-size: 16px;
  color: var(--brand-1);
  font-weight: 700;
  line-height: 1;
  margin: 2px 0;
}
.wf-step-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.005em;
}
.wf-step-sub {
  font-size: 9px;
  color: var(--ink-3);
  line-height: 1.3;
}

.wf-step-sre {
  border-color: rgba(16,185,129,0.32);
  background: linear-gradient(180deg, #fff 0%, rgba(16,185,129,0.04) 100%);
}
.wf-step-sre .wf-step-num,
.wf-step-sre .wf-step-icon { color: var(--ok); }
.wf-step-sre:hover { border-color: var(--ok); }

.wf-step-arrow {
  align-self: center;
  font-size: 18px;
  color: var(--ink-4);
  padding: 0 2px;
  font-weight: 300;
}
.wf-half-bot .wf-step-arrow { color: rgba(16,185,129,0.45); }
.wf-half-top .wf-step-arrow { color: rgba(46,107,255,0.4); }

/* Center cluster row */
.wf-cluster-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  margin: 8px 0;
}
.wf-cluster-down, .wf-cluster-up {
  text-align: center;
  font-size: 20px;
  font-weight: 300;
  color: var(--ink-3);
  grid-column: 1;
}
.wf-cluster-down { color: var(--brand-1); }
.wf-cluster-up { color: var(--ok); }

.wf-cluster-panel {
  background: linear-gradient(135deg, #0B1220 0%, #1A2540 100%);
  color: #fff;
  border-radius: 14px;
  padding: 22px 28px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  grid-column: 2;
}
.wf-cluster-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 200px at 0% 0%, rgba(46,107,255,0.28), transparent 60%),
    radial-gradient(400px 200px at 100% 100%, rgba(32,190,242,0.18), transparent 60%);
  pointer-events: none;
}
.wf-cluster-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.22);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  animation: pulse 1.4s ease-out infinite;
}
.wf-cluster-content {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wf-cluster-h {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.005em;
}
.wf-cluster-sub {
  font-size: 11px;
  color: #94A2B8;
  letter-spacing: 0.04em;
}
.wf-cluster-clouds {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.wf-cluster-clouds span {
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.08);
  color: #C5CCDA;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

/* Rails: always-on security + cost */
.wf-rails {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-1);
}
.wf-rails-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  text-align: center;
}
.wf-rail {
  display: grid;
  grid-template-columns: 36px 1fr 120px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-tint);
  border: 1px solid var(--line-1);
  border-radius: 10px;
  margin-bottom: 8px;
}
.wf-rail:last-child { margin-bottom: 0; }
.wf-rail-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.wf-rail-sec .wf-rail-icon { background: linear-gradient(135deg, #10B981, #20BEF2); }
.wf-rail-cost .wf-rail-icon { background: linear-gradient(135deg, #6486EE, #5CD7FF); }
.wf-rail-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wf-rail-h {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.005em;
}
.wf-rail-sub {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.4;
}
.wf-rail-meter {
  height: 6px;
  background: var(--line-1);
  border-radius: 3px;
  overflow: hidden;
}
.wf-rail-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6EE7B7 0%, #10B981 100%);
  border-radius: 3px;
}

/* Loop-back arrow exits the platform */
.wf-loopback {
  grid-column: 1 / -1;
  margin-top: -4px;
  position: relative;
  height: 80px;
}
.wf-loop-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wf-loopback-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--line-1);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  margin: 16px auto 0;
  display: flex;
  width: max-content;
  max-width: 100%;
  left: 50%;
  transform: translateX(-50%);
}
.wf-loopback-tag {
  font-size: 10px;
  font-weight: 700;
  color: #047857;
  background: var(--ok-soft);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Bottom pillars (summary stats) */
.wf-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--line-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.wf-pillar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  border-right: 1px solid var(--line-2);
}
.wf-pillar:last-child { border-right: none; }
.wf-pillar-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--brand-1);
  line-height: 1;
}
.wf-pillar-name {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.4;
}


/* ---------- HERO override: SRE wedge visual ---------- */

/* SRE incident panel (replaces hp-a) */
.hp-sre {
  top: 0;
  left: 0;
  width: 88%;
  z-index: 2;
}
.hp-sre-body { padding: 14px 18px 16px; }
.sre-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line-2);
}
.sre-row:last-of-type { border-bottom: none; }
.sre-bar { font-size: 11px; color: var(--ink-4); padding-top: 1px; }
.sre-event.bad { color: #B91C1C; }
.sre-event.good { color: #047857; font-weight: 500; }
.sre-event .mono { font-size: 11px; padding: 1px 5px; background: var(--bg-sunken); border-radius: 4px; }
.sre-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
}
.sre-foot b { color: var(--ink-1); font-weight: 700; }
.sre-link { color: var(--brand-1); font-size: 12px; font-weight: 600; }
.sre-link:hover { text-decoration: underline; }

/* Security finding panel (replaces hp-b) */
.hp-sec {
  bottom: 30px;
  right: -10px;
  width: 64%;
  z-index: 3;
  padding: 0;
}
.hp-sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
}
.hp-sec-badge {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #10B981 0%, #20BEF2 100%);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hp-sec-title { font-size: 13px; font-weight: 700; color: var(--ink-1); }
.hp-sec-sub { font-size: 11px; color: var(--ink-3); }
.hp-sec-findings { padding: 8px 0 12px; }
.sec-finding {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-3);
}
.sec-finding:last-child { border-bottom: none; }
.sec-sev {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
}
.sec-sev.crit { background: var(--crit-soft); color: #B91C1C; }
.sec-sev.warn { background: var(--warn-soft); color: #B45309; }
.sec-text .mono { font-size: 10px; padding: 1px 5px; background: var(--bg-sunken); border-radius: 3px; }
.sec-tag { font-size: 10px; color: var(--ink-4); }

/* hide the old hp-c / cost mini panel inherited from v1 */
.hero-visual .hp-c { display: none; }


/* ---------- AUDIT HOOK BAR ---------- */
.audithook {
  padding: 64px 0;
  background: var(--bg);
}
.audithook-card {
  background: linear-gradient(135deg, #0B1220 0%, #1A2540 100%);
  border-radius: var(--radius-xl);
  padding: 56px 56px 56px 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.audithook-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 0% 0%, rgba(46,107,255,0.18), transparent 60%),
    radial-gradient(500px 400px at 100% 100%, rgba(32,190,242,0.16), transparent 60%);
  pointer-events: none;
}
.audithook-content { position: relative; z-index: 1; }
.audithook-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-4);
  background: rgba(92,215,255,0.14);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.audithook-card h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  font-weight: 800;
  color: #fff;
  margin: 0 0 18px;
  text-wrap: balance;
}
.audithook-card p {
  font-size: 16px;
  line-height: 1.55;
  color: #C5CCDA;
  margin: 0 0 28px;
  max-width: 520px;
}
.audithook-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.audithook .btn-sec {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
}
.audithook .btn-sec:hover { background: rgba(255,255,255,0.16); }

/* Audit report mock */
.audithook-report {
  position: relative;
  z-index: 1;
}
.ar-doc {
  background: #fff;
  color: var(--ink-1);
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), 0 16px 30px -10px rgba(0,0,0,0.3);
  padding: 22px 24px;
  transform: rotate(1.5deg);
  font-size: 13px;
}
.ar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 14px;
}
.ar-logo .nav-logo { width: 22px; height: 22px; }
.ar-co { font-size: 11px; color: var(--ink-3); }
.ar-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 14px;
}
.ar-stat {
  text-align: center;
  padding: 8px 0;
  background: var(--bg-sunken);
  border-radius: 8px;
}
.ar-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ar-num.crit { color: var(--crit); }
.ar-num.warn { color: var(--warn); }
.ar-lbl {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-top: 4px;
}
.ar-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 14px 0 8px;
}
.ar-finding {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
  border-bottom: 1px dashed var(--line-3);
}
.ar-finding:last-of-type { border-bottom: none; }
.ar-finding .mono { font-size: 10px; padding: 1px 4px; background: var(--bg-sunken); border-radius: 3px; }
.ar-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-5);
  margin-top: 5px;
}
.ar-dot.crit { background: var(--crit); }
.ar-dot.warn { background: var(--warn); }


/* ---------- OPERATIONS PILLARS ---------- */
.ops {
  padding: 100px 0;
  background: var(--bg-tint);
}
.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ops-card {
  background: #fff;
  border: 1px solid var(--line-1);
  border-radius: var(--radius-lg);
  padding: 28px 28px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.ops-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ink-5);
}
.ops-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.ops-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ops-icon-sre { background: linear-gradient(135deg, #2E6BFF, #20BEF2); color: #fff; }
.ops-icon-sec { background: linear-gradient(135deg, #10B981, #20BEF2); color: #fff; }
.ops-icon-cost { background: linear-gradient(135deg, #6486EE, #5CD7FF); color: #fff; }
.ops-icon-prov { background: linear-gradient(135deg, #0E9F6E, #34D399); color: #fff; }
.ops-icon-guard { background: linear-gradient(135deg, #0E9F6E, #20BEF2); color: #fff; }
.ops-icon-market { background: linear-gradient(135deg, #34D399, #5CD7FF); color: #fff; }
.ops-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.ops-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink-1);
}
.ops-card-body {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 16px;
}
.ops-card-body b { color: var(--ink-1); }
.ops-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--ink-2);
}
.ops-bullets li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-2);
  position: relative;
  padding-left: 16px;
}
.ops-bullets li:last-child { border-bottom: none; }
.ops-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-1);
}

/* Mini mocks at bottom of each ops card */
.ops-mock {
  margin: auto -28px 0;
  padding: 16px 20px;
  background: var(--bg-tint);
  border-top: 1px solid var(--line-2);
}
.osm-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.osm-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-1);
  box-shadow: 0 0 0 4px rgba(46,107,255,0.18);
  animation: pulse 1.4s ease-out infinite;
}
.osm-shield { font-size: 14px; color: var(--ok); }
.osm-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-1);
}
.osm-line {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 4px 0;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
}
.osm-line.dim { color: var(--ink-3); }
.osm-line.ok { color: #047857; font-weight: 500; }
.osm-time { font-size: 10px; color: var(--ink-4); }

/* Security bar mock */
.osm-bar {
  display: grid;
  grid-template-columns: 96px 1fr 36px;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 11px;
  color: var(--ink-2);
}
.osm-bar-label { color: var(--ink-1); font-weight: 500; }
.osm-bar-track {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}
.osm-bar-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
}
.osm-bar .mono { font-size: 10px; color: var(--ink-3); text-align: right; }

/* Cost mock */
.osm-cost-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.osm-cost-delta {
  font-size: 12px;
  font-weight: 600;
  color: var(--ok);
}
.osm-cost-from {
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.osm-cost-bars {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 6px;
}
.osm-cost-bars span { display: block; height: 100%; }
.osm-cost-legend {
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}


/* ---------- STACK DIAGRAM ---------- */
.stack {
  padding: 100px 0;
  background: var(--bg);
}
.stack-diagram {
  position: relative;
  background: linear-gradient(180deg, #F8FAFF 0%, #EFF3FB 100%);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stack-layer {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-1);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.stack-platform {
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, #F5F8FF 100%);
}
.stack-ops {
  background: linear-gradient(180deg, #fff 0%, rgba(46,107,255,0.04) 100%);
  border-color: rgba(46,107,255,0.32);
  box-shadow: 0 16px 40px -20px rgba(46,107,255,0.25);
}
.stack-layer-side {
  border-right: 1px solid var(--line-2);
  padding-right: 20px;
}
.stack-layer-num {
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.stack-layer-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink-1);
  line-height: 1.15;
  margin-bottom: 4px;
}
.stack-ops .stack-layer-name { color: var(--brand-1); }
.stack-layer-aud {
  font-size: 12px;
  color: var(--ink-3);
}
.stack-layer-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stack-tile {
  background: var(--bg-tint);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 16px 14px;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.stack-tile:hover {
  transform: translateY(-2px);
  border-color: var(--ink-5);
  background: #fff;
}
.stack-tile.is-primary {
  background: #fff;
  border-color: rgba(46,107,255,0.28);
}
.stack-tile.is-primary:hover {
  border-color: var(--brand-1);
  box-shadow: var(--shadow-md);
}
.stack-tile-icon {
  font-size: 16px;
  color: var(--brand-1);
  margin-bottom: 8px;
  display: inline-flex;
  width: 30px; height: 30px;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 8px;
  font-weight: 700;
}
.stack-tile.is-primary .stack-tile-icon {
  background: var(--brand-1);
  color: #fff;
}
.stack-tile-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.stack-tile-sub {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.35;
}

.stack-base {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 28px;
  background: var(--bg-dark);
  color: #C5CCDA;
  border-radius: var(--radius);
  border: 1px solid #1A2540;
}
.stack-base-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.005em;
}
.stack-base-clouds {
  display: flex;
  gap: 12px;
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stack-base-clouds span {
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  color: #94A2B8;
}

.stack-note {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--accent-soft);
  border: 1px solid #C9D8FB;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  color: var(--accent-ink);
  line-height: 1.55;
}
.stack-note b { color: var(--brand-1); }
.stack-note-pin {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-1);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
}


/* ---------- HIRING AVOIDANCE ---------- */
.hiring {
  padding: 100px 0;
  background: var(--bg-tint);
}
.hiring-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.hiring-copy h2 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 800;
  margin: 18px 0 18px;
  text-wrap: balance;
}
.hiring-copy h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hiring-lede {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.hiring-pts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hiring-pts li {
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-1);
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.hiring-pts li:last-child { border-bottom: none; }
.hiring-pts li b { color: var(--ink-1); }

.hiring-math {
  background: #fff;
  border: 1px solid var(--line-1);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.hm-region-tabs {
  display: flex;
  background: var(--bg-sunken);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.hm-region-tab {
  flex: 1;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  border-radius: 8px;
  transition: background 160ms ease, color 160ms ease;
}
.hm-region-tab.is-active {
  background: #fff;
  color: var(--ink-1);
  box-shadow: var(--shadow-sm);
}
.hm-panel { display: none; }
.hm-panel.is-active { display: block; animation: fadeIn 240ms ease; }

.hm-row {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line-2);
}
.hm-row:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 22px; }
.hm-row-hero .hm-label-h {
  color: var(--brand-1);
}
.hm-row-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.hm-label-h {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-1);
}
.hm-label-sub {
  font-size: 12px;
  color: var(--ink-3);
}
.hm-bar {
  position: relative;
  height: 32px;
  background: var(--bg-sunken);
  border-radius: 6px;
  overflow: hidden;
}
.hm-bar-fill {
  display: block;
  height: 100%;
  border-radius: 6px;
  transition: width 600ms cubic-bezier(.2,.8,.2,1);
}
.hm-bar-fill.bad  { background: linear-gradient(90deg, #FCA5A5 0%, #EF4444 100%); }
.hm-bar-fill.warn { background: linear-gradient(90deg, #FCD34D 0%, #F59E0B 100%); }
.hm-bar-fill.good { background: linear-gradient(90deg, #6EE7B7 0%, #10B981 100%); }
.hm-bar-val {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-1);
  background: rgba(255,255,255,0.94);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.hm-net {
  background: var(--accent-soft);
  border: 1px solid #C9D8FB;
  border-radius: 10px;
  padding: 16px 18px;
}
.hm-net-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-1);
  margin-bottom: 6px;
}
.hm-net p {
  font-size: 14px;
  color: var(--ink-1);
  line-height: 1.55;
  margin: 0;
}


/* ---------- PLATFORM LAYER (Wedge B introduced second) ---------- */
.platform {
  padding: 100px 0;
  background: var(--bg-dark);
  color: #E8ECF5;
  position: relative;
  overflow: hidden;
}
.platform::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(46,107,255,0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(32,190,242,0.10), transparent 60%);
  pointer-events: none;
}
.platform .container { position: relative; }
.platform .section-head h2 { color: #fff; }
.platform .section-sub { color: #C5CCDA; }

/* Pipeline anatomy strip */
.pipeline-anatomy {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-xl);
  padding: 32px 32px 28px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}
.pipeline-anatomy-head { margin-bottom: 22px; }
.pa-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-4);
  background: rgba(92,215,255,0.14);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.pipeline-anatomy-head h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.pipeline-stages {
  display: grid;
  grid-template-columns: repeat(7, 1fr) auto;
  grid-auto-flow: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 24px;
}
.pipeline-stages {
  /* override above — using flex for better gap control */
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
}
.pipe-stage {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.pipe-stage:hover {
  background: rgba(46,107,255,0.14);
  border-color: rgba(92,215,255,0.45);
  transform: translateY(-2px);
}
.pipe-stage.is-prod {
  background: linear-gradient(180deg, rgba(46,107,255,0.20) 0%, rgba(32,190,242,0.12) 100%);
  border-color: rgba(92,215,255,0.5);
}
.pipe-num {
  font-size: 10px;
  color: var(--brand-4);
  letter-spacing: 0.06em;
  font-weight: 600;
}
.pipe-icon {
  font-size: 18px;
  color: var(--brand-4);
  line-height: 1;
  margin: 2px 0;
}
.pipe-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.005em;
  line-height: 1.15;
}
.pipe-detail {
  font-size: 11px;
  color: #94A2B8;
  line-height: 1.4;
}
.pipe-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  color: rgba(92,215,255,0.45);
  padding: 0 4px;
  flex-shrink: 0;
}

.pipeline-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 22px;
  border-top: 1px dashed rgba(255,255,255,0.12);
}
.pipeline-foot-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pf-num {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-4);
  line-height: 1.1;
}
.pf-unit {
  font-size: 12px;
  font-weight: 500;
  color: #94A2B8;
  margin-left: 2px;
}
.pf-lbl {
  font-size: 12px;
  color: #C5CCDA;
  line-height: 1.45;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.plat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.plat-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(92,215,255,0.32);
  transform: translateY(-2px);
}
.plat-card-h {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.plat-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-4);
  background: rgba(92,215,255,0.12);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.plat-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0;
}
.plat-card p {
  font-size: 15px;
  color: #C5CCDA;
  line-height: 1.55;
  margin: 0 0 14px;
}
.plat-stat {
  font-size: 12px;
  color: var(--brand-4);
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,0.12);
}

.platform-foot {
  margin-top: 36px;
  padding: 22px 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.platform-foot-text {
  font-size: 14px;
  color: #C5CCDA;
  line-height: 1.55;
  max-width: 600px;
}
.platform-foot-text b { color: #fff; }


/* ---------- TOUR — security panel ---------- */
.tp-sec-body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  padding: 24px;
  background: #fff;
}
.tp-sec-h {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.tp-sec-summary {
  background: var(--bg-tint);
  border-radius: 12px;
  padding: 20px;
}
.tp-sec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tp-sec-tile {
  background: #fff;
  border: 1px solid var(--line-1);
  border-radius: 10px;
  padding: 12px 14px;
}
.tp-sec-fwk {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.tp-sec-score {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.tp-sec-score.good { color: var(--ok); }
.tp-sec-score.warn { color: var(--warn); }
.tp-sec-delta {
  display: block;
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 4px;
}
.tp-sec-findings-list {}
.tp-sec-find {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}
.tp-sec-find:last-child { border-bottom: none; }
.tp-sec-find-sev {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}
.tp-sec-find-sev.crit { background: var(--crit-soft); color: #B91C1C; }
.tp-sec-find-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-1);
}
.tp-sec-find-title .mono {
  font-size: 11px;
  background: var(--bg-sunken);
  padding: 1px 5px;
  border-radius: 3px;
}
.tp-sec-find-meta {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
.tp-sec-find-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}


/* ---------- TOUR — CD panel ---------- */
.tp-cd-body {
  padding: 28px;
  background: #fff;
}
.tp-cd-pipeline-h {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line-2);
}
.tp-cd-flow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 22px;
}
.tp-cd-flow-full {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.tp-cd-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 12px;
  background: var(--bg-tint);
  border: 1px solid var(--line-1);
  border-radius: 10px;
  position: relative;
  transition: border-color 200ms ease;
}
.tp-cd-flow-full .tp-cd-node {
  padding: 10px 10px;
}
.tp-cd-node.done {
  background: var(--ok-soft);
  border-color: #B7E8D2;
}
.tp-cd-node.active {
  background: var(--accent-soft);
  border-color: var(--brand-1);
  box-shadow: 0 8px 18px -8px rgba(46,107,255,0.4);
}
.tp-cd-node-num {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
}
.tp-cd-flow-full .tp-cd-node-num {
  width: 18px;
  height: 18px;
  font-size: 9px;
}
.tp-cd-node.done .tp-cd-node-num { background: var(--ok); color: #fff; }
.tp-cd-node.active .tp-cd-node-num { background: var(--brand-1); color: #fff; }
.tp-cd-node-h {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1.15;
}
.tp-cd-flow-full .tp-cd-node-h {
  font-size: 11px;
}
.tp-cd-node-sub {
  font-size: 10px;
  color: var(--ink-3);
  line-height: 1.35;
}
.tp-cd-node-time {
  font-size: 9px;
  color: var(--ink-4);
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed rgba(15,23,42,0.08);
}
.tp-cd-node.active .tp-cd-node-time { color: var(--brand-1); font-weight: 600; }
.tp-cd-arrow {
  align-self: center;
  font-size: 18px;
  color: var(--ink-4);
  flex-shrink: 0;
}
.tp-cd-details {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.tp-cd-section-h {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.tp-cd-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.tp-cd-list li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-2);
}
.tp-cd-list li:last-child { border-bottom: none; }
.tp-cd-callout {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tp-cd-callout-num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.tp-cd-callout-lbl {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.95;
}


/* ---------- VERSUS v2 — 4 columns instead of 3 ---------- */
.vs-grid-v2 {
  grid-template-columns: repeat(4, 1fr);
}
.vs-grid-v2 .vs-col { padding: 24px; }
.vs-grid-v2 .vs-col h3 {
  font-size: 17px;
  line-height: 1.25;
}
.vs-grid-v2 .vs-list { font-size: 13px; }
.vs-grid-v2 .vs-list li { padding: 6px 0; }
.vs-grid-v2 .vs-col-foot {
  font-size: 12px;
  padding: 10px 12px;
}


/* ---------- PRICING v2 — sub label ---------- */
.price-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 12px;
  margin-top: -10px;
}
.price-card .price-num {
  font-size: 32px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .audithook-card { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
  .hiring-grid { grid-template-columns: 1fr; gap: 40px; }
  .stack-layer { grid-template-columns: 1fr; gap: 16px; }
  .stack-layer-side { border-right: none; border-bottom: 1px solid var(--line-2); padding: 0 0 12px; }

  /* workflow: stack repos above platform */
  .wf-frame { grid-template-columns: 1fr; gap: 16px; }
  .wf-repos { grid-column: 1; grid-row: 1; justify-self: start; }
  .wf-in-arrow { grid-column: 1; grid-row: 2; }
  .wf-platform { grid-column: 1; grid-row: 3; }
  .wf-loopback { grid-row: 4; }
  .wf-half { grid-template-columns: 1fr; }
  .wf-half-label { flex-direction: row; align-items: center; gap: 10px; padding: 8px 14px; }
  .wf-cluster-row { grid-template-columns: 1fr; }
  .wf-cluster-down, .wf-cluster-up { grid-column: 1; }
  .wf-cluster-panel { grid-column: 1; }
}
@media (max-width: 900px) {
  .ops-grid { grid-template-columns: 1fr; }
  .ops-card { padding-bottom: 0; }
  .stack-layer-tiles { grid-template-columns: repeat(2, 1fr); }
  .stack-base { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stack-base-clouds { margin-left: 0; flex-wrap: wrap; }
  .platform-grid { grid-template-columns: 1fr; }
  .vs-grid-v2 { grid-template-columns: 1fr; }
  .tp-sec-body { grid-template-columns: 1fr; }
  .tp-cd-flow { flex-direction: column; }
  .tp-cd-flow-full { grid-template-columns: 1fr 1fr; gap: 8px; display: grid; }
  .tp-cd-arrow { transform: rotate(90deg); }
  .tp-cd-details { grid-template-columns: 1fr; }
  .platform-foot { flex-direction: column; align-items: stretch; }

  /* pipeline anatomy: collapse to 2 cols, drop arrows */
  .pipeline-stages { flex-wrap: wrap; gap: 8px; }
  .pipe-stage { flex: 1 1 calc(50% - 4px); }
  .pipe-arrow { display: none; }
  .pipeline-foot { grid-template-columns: 1fr; gap: 12px; }

  /* workflow: collapse 5-step rows to wrap */
  .wf-steps { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .wf-step-arrow { display: none; }
  .wf-rail { grid-template-columns: 36px 1fr; }
  .wf-rail-meter { display: none; }
  .wf-pillars { grid-template-columns: repeat(2, 1fr); }
  .wf-pillar { border-right: none; border-bottom: 1px solid var(--line-2); padding: 8px 0; }
  .wf-pillar:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 600px) {
  .audithook { padding: 48px 0; }
  .audithook-card { padding: 32px 24px; }
  .ar-doc { transform: rotate(0); padding: 18px; }
  .ops, .stack, .hiring, .platform, .workflow { padding: 60px 0; }
  .stack-diagram { padding: 20px; }
  .stack-layer { padding: 18px; }
  .stack-layer-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hm-region-tab { font-size: 12px; padding: 8px; }
  .hm-bar-val { font-size: 11px; padding: 2px 6px; }
  .hero-visual .hp-sec { right: 0; bottom: 0; width: 78%; }
  .wf-platform { padding: 28px 18px 18px; }
  .wf-pillars { grid-template-columns: 1fr; padding: 18px; }
  .wf-pillar { border-bottom: 1px solid var(--line-2); padding: 10px 0; }
  .wf-pillar:last-child { border-bottom: none; }
}
