/* RefineTap — Workflow Intelligence Platform · Teal / slate operational aesthetic */

:root {
  --primary: #0F766E;
  --primary-hover: #0D9488;
  --primary-soft: rgba(15, 118, 110, 0.1);
  --accent: #06B6D4;
  --accent-soft: rgba(6, 182, 212, 0.12);
  --ink: #0F172A;
  --muted: #64748B;
  --muted-light: #94A3B8;
  --line: #E2E8F0;
  --bg: #F8FAFC;
  --bg-alt: #F0FDFA;
  --surface: #FFFFFF;
  --warn: #F59E0B;
  --warn-soft: rgba(245, 158, 11, 0.12);
  --risk: #EF4444;
  --risk-soft: rgba(239, 68, 68, 0.1);
  --positive: #10B981;
  --positive-soft: rgba(16, 185, 129, 0.1);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 28px);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 28px rgba(15, 23, 42, 0.1), 0 24px 48px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 118, 110, 0.06);
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --announce-gradient: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F766E 100%);
  --header-gradient: linear-gradient(135deg, #0F172A 0%, #1E293B 28%, #134E4A 62%, #0F766E 100%);
  --announce-h: 40px;
  --header-h: 68px;
  --site-top-h: calc(var(--announce-h) + var(--header-h));
  --card-pad: clamp(18px, 2.5vw, 24px);
  --card-gap: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.auth-page {
  background: var(--bg-alt);
  min-height: 100vh;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--site-top-h);
}

.site-shell main { flex: 1; }

h1, h2, h3, h4, .hero-title, .page-title {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.text-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.text-link:hover { color: var(--ink); }

.lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ── Announce bar + header (dark slate gradient) ── */
.announce-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  min-height: var(--announce-h);
  padding: 8px var(--gutter);
  background: var(--announce-gradient);
  border-bottom: 1px solid rgba(15, 118, 110, 0.35);
  color: rgba(240, 253, 250, 0.95);
  font-size: 0.84rem;
  font-weight: 500;
  text-align: center;
}

.announce-bar span { font-weight: 500; }

.announce-bar a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.announce-bar a:hover { color: #67E8F9; }

.site-header {
  position: fixed;
  top: var(--announce-h);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-gradient);
  border-bottom: 1px solid rgba(15, 118, 110, 0.4);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.25);
}

.header-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #F0FDFA;
  text-decoration: none;
  min-width: 0;
}

.brand:hover { color: #F0FDFA; opacity: 0.92; text-decoration: none; }

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.auth-brand .logo-mark {
  background: transparent;
  border: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #F0FDFA;
}

.brand-text span {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(240, 253, 250, 0.65);
  white-space: nowrap;
}

.nav-main {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  justify-content: center;
  justify-self: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-inline: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-main::-webkit-scrollbar { display: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(240, 253, 250, 0.88);
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover {
  color: #F0FDFA;
  background: rgba(240, 253, 250, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header-actions .nav-link {
  font-size: 0.78rem;
  padding: 6px 8px;
}

.header-actions .btn-sm {
  font-size: 0.74rem;
  padding: 6px 10px;
}

.site-header .btn-secondary {
  background: rgba(240, 253, 250, 0.92);
  color: var(--ink);
  border-color: rgba(240, 253, 250, 0.5);
}

.site-header .btn-secondary:hover {
  background: #F0FDFA;
  border-color: #F0FDFA;
  color: var(--ink);
}

.site-header .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.site-header .btn-primary:hover {
  background: #22D3EE;
  border-color: #22D3EE;
  color: var(--ink);
}

/* ── Buttons ── */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.28);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: #94A3B8;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.btn-lg { padding: 13px 24px; font-size: 0.9375rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 14px; font-size: 0.78rem; border-radius: 999px; }
.btn-full { width: 100%; }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Homepage hero blueprint ── */
.hero-blueprint {
  padding: clamp(48px, 6vw, 72px) 0 clamp(56px, 7vw, 80px);
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 55%);
  border-bottom: 1px solid var(--line);
}

.hero-blueprint-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.hero-copy { min-width: 0; }

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 52ch;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-proof-item strong {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-proof-item span {
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-canvas {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 0;
}

.canvas-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--line);
}

.canvas-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.canvas-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--primary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse-live 2s ease infinite;
}

@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.canvas-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 16px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 11px,
    rgba(226, 232, 240, 0.5) 11px,
    rgba(226, 232, 240, 0.5) 12px
  );
}

.flow-node {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  min-width: 88px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  position: relative;
}

.flow-node span:first-child {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.flow-node em {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-style: normal;
  color: var(--muted);
}

.flow-node.node-flagged {
  border-color: rgba(245, 158, 11, 0.45);
  background: var(--warn-soft);
}

.flow-node.node-done {
  border-color: rgba(16, 185, 129, 0.35);
  background: var(--positive-soft);
}

.node-flag {
  position: absolute;
  top: -8px;
  right: -6px;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--warn);
  color: #fff;
}

.flow-link {
  width: 18px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  flex-shrink: 0;
}

.flow-link-warn { background: var(--warn); }

.canvas-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.insight {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 0.78rem;
}

.insight strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}

.insight p { margin: 0; line-height: 1.5; color: var(--muted); }

.insight-warn { background: var(--warn-soft); border-color: rgba(245, 158, 11, 0.25); }
.insight-risk { background: var(--risk-soft); border-color: rgba(239, 68, 68, 0.22); }
.insight-info { background: var(--accent-soft); border-color: rgba(6, 182, 212, 0.22); }

.canvas-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.06) 0%, var(--bg-alt) 50%, rgba(16, 185, 129, 0.08) 100%);
  border-top: 1px solid var(--line);
}

.compare-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.compare-mini span {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.compare-mini strong {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ink);
}

.compare-mini.before strong { color: var(--risk); }
.compare-mini.after strong { color: var(--positive); }
.compare-mini.arrow {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--primary);
  padding: 0;
}

/* ── Sections ── */
.section {
  padding: clamp(48px, 6vw, 72px) 0;
}

.section.is-alt {
  background: var(--bg-alt);
  border-block: 1px solid rgba(15, 118, 110, 0.12);
}

.section.tight { padding: 48px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ── Impact split ── */
.impact-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
}

.impact-card {
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.impact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.impact-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.impact-card li {
  font-size: 0.875rem;
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}

.impact-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--muted-light);
}

.impact-negative { border-top: 3px solid var(--risk); }
.impact-positive { border-top: 3px solid var(--positive); }

.impact-cost {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.impact-cost strong {
  color: var(--ink);
  font-weight: 700;
}

.impact-negative .impact-cost strong { color: var(--risk); }
.impact-positive .impact-cost strong { color: var(--positive); }

/* ── Case grid ── */
.case-grid,
.case-study-grid,
.case-study-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 118, 110, 0.22);
}

.case-tag,
.case-team {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.case-card h3,
.case-card strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.case-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
}

.case-metrics {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-block: 1px solid var(--line);
}

.case-metrics div strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.case-metrics div span {
  font-size: 0.72rem;
  color: var(--muted);
}

.case-result { margin-top: auto; }

.case-teal { border-top: 3px solid var(--primary); }
.case-positive { border-top: 3px solid var(--positive); }
.case-neutral { border-top: 3px solid var(--muted-light); }

/* ── Pipeline strip ── */
.pipeline-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}

.pipeline-node {
  flex: 1 1 140px;
  max-width: 180px;
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.pipeline-node span {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.pipeline-node strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.pipeline-node p {
  font-size: 0.78rem;
  line-height: 1.5;
}

.pipeline-core {
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--surface) 100%);
  border-color: rgba(15, 118, 110, 0.28);
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  color: var(--primary);
  padding: 0 4px;
}

/* ── Industry pills ── */
.industry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.industry-pill {
  padding: 12px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.industry-pill:hover {
  background: var(--primary-soft);
  border-color: rgba(15, 118, 110, 0.3);
  color: var(--primary);
  box-shadow: var(--shadow);
  text-decoration: none;
}

/* ── Page layouts ── */
.page-hero {
  padding: 48px 0 40px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero.about-hero { padding-bottom: 24px; }

.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 52ch;
}

.page-showcase {
  padding: 40px 0 56px;
  background: var(--bg);
}

.page-showcase.is-alt {
  background: var(--bg-alt);
  border-block: 1px solid rgba(15, 118, 110, 0.1);
}

.page-body {
  padding: 32px 0 48px;
  background: var(--bg);
}

.section-inline-title {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.page-hero--centered { text-align: center; }
.page-hero--centered .breadcrumb { justify-content: center; }
.page-hero--centered .page-title { margin-inline: auto; max-width: 24ch; }
.page-hero--centered .lead { margin-inline: auto; }
.page-hero--centered .btn-row { justify-content: center; }

.pricing-showcase {
  padding-top: 32px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.feature-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-card);
}

.feature-frame > * + * {
  margin-top: var(--card-gap);
}

.spec-callout {
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--accent-soft) 100%);
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
}

.spec-callout strong { color: var(--ink); }

.section-cta {
  padding: 48px 0 64px;
  background: var(--bg);
}

.sub-cta {
  text-align: center;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.sub-cta h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.sub-cta p {
  max-width: 48ch;
  margin-inline: auto;
}

.sub-cta .btn-row { justify-content: center; }

/* ── Chips & badges ── */
.ops-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
}

.chip-neutral { background: var(--bg); color: var(--muted); }
.chip-teal { background: var(--primary-soft); color: var(--primary); border-color: rgba(15, 118, 110, 0.22); }
.chip-warn { background: var(--warn-soft); color: #B45309; border-color: rgba(245, 158, 11, 0.25); }
.chip-risk { background: var(--risk-soft); color: var(--risk); border-color: rgba(239, 68, 68, 0.22); }
.chip-positive { background: var(--positive-soft); color: #059669; border-color: rgba(16, 185, 129, 0.22); }
.ops-chip.is-active { box-shadow: 0 0 0 2px var(--accent); }

.metric-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 100px;
}

.metric-badge strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.metric-badge span {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.badge-neutral strong { color: var(--ink); }
.badge-teal strong { color: var(--primary); }
.badge-warn strong { color: var(--warn); }
.badge-risk strong { color: var(--risk); }
.badge-positive strong { color: var(--positive); }

.ranking-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
  margin-top: var(--card-gap);
  padding-top: var(--card-gap);
  border-top: 1px solid var(--line);
}

/* ── Workflow blueprint ── */
.workflow-blueprint {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.blueprint-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.blueprint-head strong {
  font-size: 1rem;
  color: var(--ink);
}

.blueprint-head span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.blueprint-track {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.blueprint-step {
  flex: 1 1 120px;
  min-width: 120px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top-width: 3px;
}

.step-neutral { border-top-color: var(--muted-light); }
.step-warn { border-top-color: var(--warn); background: var(--warn-soft); }
.step-risk { border-top-color: var(--risk); background: var(--risk-soft); }
.step-positive { border-top-color: var(--positive); background: var(--positive-soft); }

.step-index {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.blueprint-step strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-meta span {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
}

.blueprint-connector {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: var(--primary);
  padding: 0 2px;
}

.blueprint-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
}

/* ── Process map canvas ── */
.process-map-canvas {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--card-gap);
  min-height: 360px;
}

.map-canvas-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  flex: 1;
  align-content: start;
  padding: 12px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 23px,
    rgba(226, 232, 240, 0.45) 23px,
    rgba(226, 232, 240, 0.45) 24px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 23px,
    rgba(226, 232, 240, 0.45) 23px,
    rgba(226, 232, 240, 0.45) 24px
  );
  border-radius: var(--radius-sm);
}

.map-node {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--muted-light);
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.map-node:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.map-node strong {
  display: block;
  font-size: 0.78rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.map-node > span {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
}

.node-stats {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.node-stats em {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-style: normal;
  color: var(--muted);
}

.node-neutral { border-left-color: var(--muted-light); }
.node-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.node-risk { border-left-color: var(--risk); background: var(--risk-soft); }
.node-positive { border-left-color: var(--positive); background: var(--positive-soft); }

.map-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.map-side-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.panel-placeholder strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.panel-placeholder p {
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.panel-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.panel-owners {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
}

.process-map-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
  margin-bottom: var(--card-gap);
}

/* ── Bottleneck cards ── */
.bottleneck-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bottleneck-head-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.bottleneck-head-bar strong { color: var(--ink); }
.bottleneck-head-bar span {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
}

.bottleneck-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.bottleneck-risk { border-left: 3px solid var(--risk); }
.bottleneck-warn { border-left: 3px solid var(--warn); }
.bottleneck-neutral { border-left: 3px solid var(--muted-light); }

.bottleneck-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: none;
  cursor: pointer;
  text-align: left;
}

.bottleneck-head:hover { background: var(--bg-alt); }

.bottleneck-rank {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

.bottleneck-head strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
}

.bottleneck-head span {
  font-size: 0.75rem;
  color: var(--muted);
}

.bottleneck-chevron {
  color: var(--muted);
  transition: transform 0.2s;
}

.bottleneck-head[aria-expanded="true"] .bottleneck-chevron {
  transform: rotate(180deg);
}

.bottleneck-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.bottleneck-body p {
  font-size: 0.875rem;
  line-height: 1.6;
  padding: 14px 0;
}

.bottleneck-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Refinement workbench ── */
.refinement-workbench {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.workbench-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.wb-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.wb-block {
  flex: 1;
  padding: var(--card-pad);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.wb-block h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.wb-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.wb-block li {
  font-size: 0.8125rem;
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}

.wb-block li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.wb-ai .wb-block {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 100%);
  border-color: rgba(6, 182, 212, 0.22);
}

.suggestion-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.suggestion-item:last-child { border-bottom: none; padding-bottom: 0; }

.suggestion-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.suggestion-item p {
  font-size: 0.78rem;
  line-height: 1.55;
}

.wb-metrics {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.wb-metrics div strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--ink);
}

.wb-metrics div span {
  font-size: 0.72rem;
  color: var(--muted);
}

.wb-optimized div strong { color: var(--positive); }

.refinement-roi-forecast {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.roi-forecast-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.roi-forecast-head strong { color: var(--ink); }
.roi-forecast-head span {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
}

.roi-forecast-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
}

/* ── Duplicate path diagram ── */
.duplicate-path-diagram {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.dup-path-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.dup-path-head strong { color: var(--ink); }
.dup-path-head span {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
}

.dup-path-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dup-path-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--muted-light);
}

.path-warn { border-left-color: var(--warn); }
.path-risk { border-left-color: var(--risk); }

.path-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.path-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.path-chain span:not(.path-arrow) {
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.path-arrow {
  color: var(--warn);
  font-weight: 700;
}

.dup-path-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
}

/* ── Risk heatmap ── */
.risk-heatmap {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.heatmap-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.heatmap-head strong { color: var(--ink); }
.heatmap-head span {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.heatmap-cell {
  padding: var(--card-pad);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.heat-critical { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.3); }
.heat-high { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.28); }
.heat-medium { background: var(--bg); }
.heat-low { background: var(--positive-soft); border-color: rgba(16, 185, 129, 0.22); }

.heat-workflow {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.heatmap-cell strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.heat-score span {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.heat-score em {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-style: normal;
  color: var(--muted);
  text-transform: uppercase;
}

.heat-critical .heat-score span { color: var(--risk); }
.heat-high .heat-score span { color: var(--warn); }

.heatmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Handoff network ── */
.handoff-network {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.network-canvas {
  position: relative;
  padding: 24px;
  min-height: 280px;
  background: radial-gradient(circle at center, var(--accent-soft) 0%, var(--bg) 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.network-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 16px 20px;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.network-hub span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.network-hub em {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-style: normal;
  color: var(--muted);
  margin-top: 4px;
}

.network-nodes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
  min-height: 240px;
}

.handoff-node {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 180px;
}

.handoff-node:nth-child(1) { justify-self: start; align-self: start; }
.handoff-node:nth-child(2) { justify-self: end; align-self: start; }
.handoff-node:nth-child(3) { justify-self: start; align-self: end; }
.handoff-node:nth-child(4) { justify-self: end; align-self: end; }

.handoff-node strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
}

.handoff-node > span {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--primary);
}

.handoff-node em {
  display: block;
  font-size: 0.72rem;
  font-style: normal;
  color: var(--muted);
  margin-top: 4px;
}

.network-edges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.edge {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}

.edge-warn { border-left: 3px solid var(--warn); }
.edge-risk { border-left: 3px solid var(--risk); }
.edge-neutral { border-left: 3px solid var(--muted-light); }

.network-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
}

/* ── Workflow compare ── */
.workflow-compare {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 180px) 1fr;
  gap: var(--card-gap);
  align-items: stretch;
}

.compare-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-before .compare-label { color: var(--risk); }
.compare-after .compare-label { color: var(--positive); }

.compare-block {
  flex: 1;
  padding: var(--card-pad);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-before .compare-block { border-top: 3px solid var(--risk); }
.compare-after .compare-block { border-top: 3px solid var(--positive); }

.compare-block h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.compare-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.compare-block li {
  font-size: 0.8125rem;
  padding-left: 14px;
  position: relative;
}

.compare-block li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--muted-light);
}

.compare-metrics {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.compare-metrics div strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
}

.compare-metrics div span {
  font-size: 0.72rem;
  color: var(--muted);
}

.compare-positive div strong { color: var(--positive); }

.compare-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 8px;
}

.compare-divider span {
  font-size: 1.5rem;
  color: var(--primary);
}

.compare-divider em {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 600;
  color: var(--positive);
  text-align: center;
}

.compare-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: var(--card-pad);
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg-alt) 100%);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius-lg);
  text-align: center;
}

.compare-center-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.compare-live-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.compare-live-metrics div strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--positive);
}

.compare-live-metrics div span {
  font-size: 0.72rem;
  color: var(--muted);
}

.compare-center > em {
  font-size: 0.68rem;
  color: var(--muted-light);
  line-height: 1.45;
}

.canvas-flow-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.canvas-flow-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.canvas-flow-label-opt { color: var(--primary); }

.canvas-flow-sublabel { font-weight: 500; color: var(--ink); }

.canvas-flow-optimized {
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.06) 0%, rgba(240, 253, 250, 0.8) 100%);
}

.flow-node-opt {
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(240, 253, 250, 0.9);
}

.flow-node-opt.flow-node-done {
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--positive-soft);
}

.flow-link-opt { background: var(--primary); opacity: 0.45; }

.compare-mini em {
  display: block;
  font-size: 0.62rem;
  font-style: normal;
  color: var(--muted);
  margin-top: 2px;
}

.compare-mini.savings {
  background: var(--primary-soft);
  border-color: rgba(15, 118, 110, 0.22);
}

.compare-mini.savings strong { color: var(--primary); }

.bottleneck-detail {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.bottleneck-detail div { display: grid; gap: 4px; }

.bottleneck-detail dt {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.bottleneck-detail dd {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink);
}

.ranking-footer-title {
  width: 100%;
  font-size: 0.95rem;
  margin: 0 0 4px;
}

.suggestion-why,
.suggestion-benefit {
  font-size: 0.8125rem;
  line-height: 1.55;
  margin: 8px 0 0;
}

.suggestion-steps {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.panel-section { margin-top: 14px; }

.panel-section-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.panel-list {
  margin: 0;
  padding-left: 16px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.risk-detail-panel {
  margin-top: var(--card-gap);
  padding: var(--card-pad);
  background: var(--risk-soft);
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: var(--radius);
}

.risk-detail-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.risk-detail-list div { display: grid; gap: 4px; }

.risk-detail-list dt {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.risk-detail-list dd {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.network-edges .edge {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.network-edges .edge strong { color: var(--ink); }

.network-edges .edge em {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-style: normal;
  color: var(--muted);
}

.platform-ai-analysis {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.ai-analysis-head strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.ai-analysis-head span {
  font-size: 0.8125rem;
  color: var(--muted);
}

.ai-analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}

.ai-analysis-card {
  padding: var(--card-pad);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ai-analysis-card span {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.ai-analysis-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.ai-analysis-card p {
  font-size: 0.8125rem;
  line-height: 1.55;
  margin: 0;
}

.ai-analysis-highlight {
  background: var(--primary-soft);
  border-color: rgba(15, 118, 110, 0.2);
}

.ai-animation-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  background: var(--bg-alt);
  border: 1px dashed rgba(15, 118, 110, 0.25);
  border-radius: var(--radius);
}

.ai-pulse-step,
.ai-pulse-flag,
.ai-pulse-plan {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-width: 120px;
}

.ai-pulse-step span,
.ai-pulse-flag span,
.ai-pulse-plan span {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  color: var(--muted);
}

.ai-pulse-flag {
  background: var(--warn-soft);
  border-color: rgba(245, 158, 11, 0.25);
}

.ai-pulse-plan {
  background: var(--positive-soft);
  border-color: rgba(16, 185, 129, 0.25);
}

.ai-pulse-arrow {
  color: var(--primary);
  font-weight: 700;
}

.demo-booking-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--card-gap);
  align-items: start;
}

.demo-booking-copy h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.demo-booking-copy p,
.demo-booking-copy li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.demo-booking-copy ul {
  margin: 12px 0 16px;
  padding-left: 18px;
}

.demo-booking-card {
  padding: var(--card-pad);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.demo-booking-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
}

.demo-agenda {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-agenda div {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.demo-agenda strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.demo-agenda span {
  font-size: 0.8125rem;
  color: var(--muted);
}

.ops-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.ops-case-card {
  padding: var(--card-pad);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.ops-case-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.ops-case-card > p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.ops-case-result {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--positive);
  margin-top: 10px;
}

.tracker-benefits {
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 140px;
}

.bottleneck-card.is-expanded .bottleneck-chevron { transform: rotate(180deg); }

/* ── Improvement tracker ── */
.improvement-tracker {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.tracker-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tracker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.tracker-table th {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.tracker-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.tracker-table tbody tr:last-child td { border-bottom: none; }
.tracker-table tbody tr:hover { background: var(--bg-alt); }

.tracker-table td strong {
  display: block;
  color: var(--ink);
}

.tracker-table td span {
  font-size: 0.72rem;
  color: var(--muted);
}

.progress-bar {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  min-width: 80px;
  margin-bottom: 4px;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: inherit;
}

.tracker-table td em {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-style: normal;
  color: var(--muted);
}

.tracker-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tracker-timeline-track {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tracker-timeline-node {
  flex: 1 1 140px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  border-top: 3px solid var(--muted-light);
}

.tracker-timeline-node span {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.tracker-timeline-node strong {
  font-size: 0.78rem;
  color: var(--ink);
}

.tracker-timeline-node.node-positive { border-top-color: var(--positive); }
.tracker-timeline-node.node-teal { border-top-color: var(--primary); }
.tracker-timeline-node.node-warn { border-top-color: var(--warn); }

.tracker-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
}

/* ── Integration blueprint ── */
.integration-blueprint {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--card-gap);
  align-items: center;
}

.integration-sources,
.integration-target {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.integration-source {
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.integration-source:hover {
  border-color: rgba(15, 118, 110, 0.3);
  box-shadow: var(--shadow);
}

.integration-source strong {
  display: block;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.integration-source span {
  font-size: 0.72rem;
  color: var(--muted);
}

.integration-stream {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
}

.stream-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-live 1.8s ease infinite;
}

.stream-pulse:nth-child(2) { animation-delay: 0.3s; }
.stream-pulse:nth-child(3) { animation-delay: 0.6s; }

.stream-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.integration-target {
  padding: var(--card-pad);
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--accent-soft) 100%);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--radius-lg);
}

.integration-target strong {
  font-size: 1rem;
  color: var(--ink);
}

.integration-target p {
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 8px 0 12px;
}

/* ── Pricing grid ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.price-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
  transform: scale(1.02);
}

.price-tier {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.price-amount {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.price-amount span {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.price-summary {
  font-size: 0.875rem;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  margin-bottom: 8px;
}

.price-features li {
  font-size: 0.8125rem;
  padding-left: 18px;
  position: relative;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.price-card .btn { margin-top: auto; }

/* ── ROI calculator ── */
.roi-calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-gap);
  align-items: start;
}

.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.roi-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roi-field span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.roi-field input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
}

.roi-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.roi-output {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: var(--card-pad);
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--bg-alt) 100%);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius-lg);
}

.roi-metric strong {
  display: block;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.roi-metric span {
  font-size: 0.8125rem;
  color: var(--muted);
}

.roi-note {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--muted-light);
  margin-top: 8px;
}

/* ── Platform lifecycle ── */
.platform-lifecycle {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}

.lifecycle-node {
  flex: 1 1 150px;
  max-width: 200px;
  padding: var(--card-pad);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.lifecycle-node span {
  display: block;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.lifecycle-node p {
  font-size: 0.78rem;
  line-height: 1.5;
}

.lifecycle-ai {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 100%);
  border-color: rgba(6, 182, 212, 0.28);
}

.lifecycle-arrow {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  color: var(--primary);
}

/* ── Team use cases & hub ── */
.team-use-case,
.team-use-cases {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.team-use-case header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.team-use-case header strong { color: var(--ink); }
.team-use-case header span {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
}

.use-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.use-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.use-step > span {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.use-step strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.use-step p {
  font-size: 0.78rem;
  line-height: 1.55;
}

.use-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--card-gap);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.use-result-detail {
  font-size: 0.875rem;
  color: var(--muted);
}

.teams-hub,
.teams-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
}

.team-hub-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.team-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 118, 110, 0.25);
}

.team-hub-card a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--card-pad);
  color: inherit;
  text-decoration: none;
}

.team-hub-card strong {
  font-size: 1rem;
  color: var(--ink);
}

.team-hub-card p {
  font-size: 0.8125rem;
  flex: 1;
}

.team-hub-metric {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
}

/* ── About pages ── */
.about-spread {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.about-spread-head span {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-spread-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 12px 0;
}

.about-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 62ch;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.about-col {
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.about-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.about-col h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.about-col p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  padding: clamp(24px, 3vw, 32px);
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--accent-soft) 100%);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius-xl);
}

.about-stats div { text-align: center; }

.about-stats strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.about-stats span {
  font-size: 0.8125rem;
  color: var(--muted);
}

.about-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-gap);
}

.about-contact-block,
.about-legal-block {
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.about-contact-block h3,
.about-legal-block h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.about-contact-block p,
.about-legal-block p {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 10px;
}

/* ── UI alerts ── */
.ui-alert {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border: 1px solid var(--line);
}

.ui-alert strong { color: var(--ink); }
.ui-alert-ok { background: var(--positive-soft); border-color: rgba(16, 185, 129, 0.28); }
.ui-alert-warn { background: var(--warn-soft); border-color: rgba(245, 158, 11, 0.28); }
.ui-alert-info { background: var(--accent-soft); border-color: rgba(6, 182, 212, 0.25); }

.is-running .feature-frame {
  opacity: 0.65;
  pointer-events: none;
}

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: rgba(248, 250, 252, 0.65);
}

.footer-cta {
  padding: 56px 0;
  background: linear-gradient(135deg, #134E4A 0%, #0F766E 50%, #0F172A 100%);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.footer-cta-inner {
  text-align: center;
}

.footer-cta-inner h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #F0FDFA;
  margin-bottom: 20px;
}

.footer-cta-inner .btn-row { justify-content: center; }

.footer-cta .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.footer-cta .btn-secondary {
  background: transparent;
  border-color: rgba(240, 253, 250, 0.4);
  color: #F0FDFA;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 480px;
}

.footer-top .brand { color: #F0FDFA; }
.footer-top .brand-text strong { color: #F0FDFA; }
.footer-top .brand-text span { color: rgba(240, 253, 250, 0.55); }

.footer-tagline {
  font-family: var(--display);
  font-size: 1.125rem;
  color: rgba(248, 250, 252, 0.88);
  line-height: 1.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}

.footer-col h5 {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.88);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.8125rem;
  color: rgba(248, 250, 252, 0.55);
  padding: 4px 0;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(248, 250, 252, 0.1);
}

.footer-meta {
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.4);
}

/* ── Auth shell ── */
.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-visual {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: clamp(32px, 5vw, 56px);
  background: var(--header-gradient);
  color: #F0FDFA;
}

.auth-brand { color: #F0FDFA; }
.auth-brand .brand-text strong { color: #F0FDFA; }
.auth-brand .brand-text span { color: rgba(240, 253, 250, 0.65); }

.auth-copy h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: #F0FDFA;
  margin-bottom: 16px;
}

.auth-copy .lead { color: rgba(240, 253, 250, 0.78); max-width: 42ch; }

.auth-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}

.auth-metric strong {
  display: block;
  font-family: var(--display);
  font-size: 1.75rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.auth-metric span {
  font-size: 0.8125rem;
  color: rgba(240, 253, 250, 0.65);
}

.auth-quote {
  font-style: italic;
  font-size: 0.9375rem;
  color: rgba(240, 253, 250, 0.85);
  padding: 16px;
  border-left: 3px solid var(--accent);
  background: rgba(15, 23, 42, 0.2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.auth-foot {
  font-size: 0.75rem;
  color: rgba(240, 253, 250, 0.45);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  background: var(--bg);
}

.auth-wrap {
  width: 100%;
  max-width: 400px;
}

.auth-wrap h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.auth-card {
  margin-top: 24px;
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.auth-note {
  margin-top: 20px;
  font-size: 0.875rem;
  text-align: center;
}

/* ── Forms (auth + modals) ── */
.form,
.site-modal-form,
.narrative-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group,
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label,
.form-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.form-group input,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form-group input::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted-light);
}

.form-group input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-field select {
  appearance: none;
  cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: var(--bg);
}

.form-field select:focus {
  background-color: var(--surface);
}

.form-field textarea {
  min-height: 88px;
  resize: vertical;
}

.form-field input[type="file"] {
  padding: 10px 12px;
  font-size: 0.8125rem;
  color: var(--muted);
  cursor: pointer;
}

.form-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.form-field input[type="file"]::file-selector-button:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.form-field input[type="number"] {
  font-variant-numeric: tabular-nums;
}

.site-modal-form .btn-primary,
.site-modal-form .btn-full {
  margin-top: 4px;
}

.form-success {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--positive-soft);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #047857;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.narrative-editor .form-field textarea {
  min-height: 72px;
}

.roi-modal-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.roi-modal-result .roi-metric {
  text-align: center;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.roi-modal-result .roi-metric strong {
  font-size: 1.35rem;
}

.form-divider {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted-light);
  position: relative;
  margin: 4px 0;
}

.form-divider::before,
.form-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--line);
}

.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

/* ── Modals ── */
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px var(--gutter);
}

.site-modal:not([hidden]) { display: flex; }

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.site-modal-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.site-modal-wide { width: min(720px, 100%); }

.site-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.site-modal-close:hover {
  background: var(--line);
  color: var(--ink);
}

.site-modal-panel h2 {
  margin: 0 32px 8px 0;
  font-size: 1.45rem;
  color: var(--ink);
}

.site-modal-lead {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Responsive: 960px ── */
@media (max-width: 1400px) {
  .brand-text span { display: none; }
}

@media (max-width: 1180px) {
  .nav-link { font-size: 0.74rem; padding: 6px 7px; }
}

@media (max-width: 1100px) {
  .nav-link { font-size: 0.72rem; padding: 6px 5px; }
  .header-actions .nav-link { font-size: 0.7rem; padding: 5px 6px; }
  .header-actions .btn-sm { font-size: 0.68rem; padding: 5px 8px; }
}

@media (max-width: 960px) {
  .announce-bar { font-size: 0.78rem; }

  .header-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
    min-height: auto;
  }

  .nav-main {
    order: 3;
    width: 100%;
    justify-content: center;
    justify-self: auto;
    flex-wrap: wrap;
    gap: 4px;
    overflow-x: visible;
  }

  .site-shell { padding-top: calc(var(--announce-h) + 120px); }

  .hero-blueprint-grid {
    grid-template-columns: 1fr;
  }

  .hero-canvas { order: -1; }

  .canvas-insights {
    grid-template-columns: 1fr;
  }

  .impact-split,
  .case-grid,
  .case-study-grid,
  .case-study-cards,
  .pricing-grid,
  .refinement-workbench,
  .workflow-compare,
  .integration-blueprint,
  .roi-calculator,
  .about-columns,
  .about-stats,
  .about-contact-grid,
  .teams-hub,
  .teams-hub-grid,
  .heatmap-grid,
  .process-map-canvas,
  .ai-analysis-grid,
  .ops-case-grid,
  .demo-booking-section {
    grid-template-columns: 1fr;
  }

  .workflow-compare {
    grid-template-columns: 1fr;
  }

  .compare-center { order: 2; }

  .process-map-canvas .map-side-panel { order: -1; }

  .compare-divider {
    flex-direction: row;
    padding: 12px 0;
  }

  .pipeline-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .pipeline-node { max-width: none; }

  .pipeline-arrow {
    justify-content: center;
    transform: rotate(90deg);
  }

  .platform-lifecycle {
    flex-direction: column;
    align-items: stretch;
  }

  .lifecycle-node { max-width: none; }

  .lifecycle-arrow {
    justify-content: center;
    transform: rotate(90deg);
  }

  .dup-path-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: auto;
    padding-bottom: 32px;
  }

  .price-featured { transform: none; }
}

/* ── Responsive: 640px ── */
@media (max-width: 640px) {
  :root {
    --card-gap: 16px;
  }

  .hero-title { font-size: 2rem; }

  .hero-proof {
    flex-direction: column;
    gap: 16px;
  }

  .canvas-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-link {
    width: 2px;
    height: 16px;
    margin-inline: auto;
  }

  .canvas-compare {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-cta-inner h2 { font-size: 1.35rem; }

  .sub-cta { padding: 28px 20px; }

  .feature-frame { padding: 16px; }

  .network-nodes {
    grid-template-columns: 1fr;
  }

  .handoff-node {
    max-width: none;
    justify-self: stretch !important;
    align-self: stretch !important;
  }

  .network-hub {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto 16px;
  }

  .source-grid {
    grid-template-columns: 1fr;
  }

  .blueprint-track {
    flex-direction: column;
  }

  .blueprint-connector {
    justify-content: center;
    transform: rotate(90deg);
  }

  .btn-row .btn-lg {
    width: 100%;
  }

  .site-modal-panel {
    padding: 24px 20px;
  }

  .roi-modal-result {
    grid-template-columns: 1fr;
  }
}
