/* ============================================================
   Agency Snapshot walkthrough site: shared stylesheet
   Neutral white-label brand: palette tokens below, Manrope + Inter, text wordmark.
   ============================================================ */

:root {
  /* Agency Snapshot: neutral white-label palette.
     Ink navy frames the page, mint is a FILL only (ink text on it), cobalt is the
     action/link color. Token names are kept from the template so component CSS is unchanged. */
  --brand-black: #0f1b2d;     /* ink navy: nav text, footer, dark panels */
  --brand-cyan: #63d6b9;      /* mint fill (ink text on it) */
  --brand-cyan-deep: #1f8f78; /* mint, focus rings */
  --brand-grad-start: #8fe3cd;
  --indigo: #2546b5;          /* cobalt action/link, 7.4:1 on white */
  --indigo-dark: #1a3383;
  --indigo-soft: #f0f4fc;
  --indigo-border: #d4ddf2;
  --peri: #0f1b2d;            /* footer band */
  --sky: #63d6b9;
  --heading: #0f1b2d;
  --body: #2b3647;
  --muted: #566275;
  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --border: #e1e6ef;
  --amber: #E8A33D;
  --amber-soft: #fef6ea;
  --amber-border: #f6e2c2;
  --font-head: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; }

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 44px; height: 44px; object-fit: contain; }
.nav-brand span {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--heading);
}
.nav-brand small {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: 11px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
  color: var(--body);
}
.nav-links a:hover { background: var(--surface-alt); text-decoration: none; color: var(--heading); }
.nav-links a[aria-current="page"] { background: var(--indigo-soft); color: var(--indigo-dark); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 42px; height: 42px; font-size: 20px; color: var(--heading); cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 10px; padding: 12px 14px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-dark); }
.btn-secondary { background: var(--surface); color: var(--heading); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--indigo); color: var(--indigo-dark); }
.btn-small { padding: 10px 18px; font-size: 13.5px; }

/* ---------- Section scaffolding ---------- */

.section { padding: 88px 0; }
.section-alt { background: var(--surface-alt); }

.section-title {
  font-size: clamp(24px, 3.4vw, 32px); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.01em;
}
.section-title::after {
  content: ""; display: block; width: 56px; height: 3px;
  background: var(--indigo); border-radius: 2px; margin-top: 14px;
}
.section-lede { max-width: 62ch; margin-top: 18px; font-size: 17px; }

/* ---------- Page header (subpages) ---------- */

.page-head { padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.page-head h1 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.01em;
}
.page-head h1::after {
  content: ""; display: block; width: 56px; height: 3px;
  background: var(--indigo); border-radius: 2px; margin-top: 16px;
}
.page-head p { max-width: 64ch; margin-top: 16px; font-size: 17px; }
.page-head .count-note {
  display: inline-block; margin-top: 20px; font-family: var(--font-head);
  font-weight: 600; font-size: 13px; color: var(--indigo-dark);
  background: var(--indigo-soft); border: 1px solid var(--indigo-border);
  border-radius: 999px; padding: 6px 14px;
}

/* ---------- Hero (index) ---------- */

.hero { padding: 72px 0 88px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px; align-items: center;
}
.hero-eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--indigo-dark); background: var(--indigo-soft);
  border: 1px solid var(--indigo-border); border-radius: 999px; padding: 7px 16px;
}
.hero h1 {
  margin-top: 22px; font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.12;
}
.hero p { margin-top: 20px; font-size: 18px; max-width: 52ch; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

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

/* ---------- Video slot ---------- */

.video-slot {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px;
  overflow: hidden; background: var(--brand-black); isolation: isolate;
}
.video-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--brand-black); }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.video-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.72));
}
.video-play {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px;
  border-radius: 999px; border: 0; cursor: pointer;
  background: var(--indigo); color: #fff; font-size: 26px;
  display: grid; place-items: center;
  box-shadow: 0 12px 32px rgba(37, 70, 181, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}
.video-play:hover { background: var(--indigo-dark); transform: scale(1.05); }
.video-play:active { transform: scale(0.97); }
.video-caption {
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px;
}
.video-caption small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12.5px; color: rgba(255,255,255,0.75); }
.video-note {
  position: absolute; top: 14px; left: 16px;
  font-size: 11.5px; font-family: var(--font-head); font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px; padding: 5px 12px; backdrop-filter: blur(4px);
}

/* ---------- Stats band (index) ---------- */

.stats-grid {
  margin-top: 44px; display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.stat-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 4px;
  color: inherit; transition: border-color 0.15s ease, transform 0.15s ease;
}
a.stat-tile:hover { border-color: var(--indigo); text-decoration: none; transform: translateY(-2px); }
.stat-tile .num { font-family: var(--font-head); font-weight: 800; font-size: 38px; color: var(--heading); line-height: 1; }
.stat-tile .label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--heading); margin-top: 8px; }
.stat-tile .sub { font-size: 13px; color: var(--muted); }
.stat-tile.tile-indigo { background: var(--indigo); border-color: var(--indigo); grid-column: span 2; }
.stat-tile.tile-indigo .num, .stat-tile.tile-indigo .label { color: #fff; }
.stat-tile.tile-indigo .sub { color: rgba(255, 255, 255, 0.78); }
.stat-tile.tile-soft { background: var(--indigo-soft); border-color: var(--indigo-border); grid-column: span 2; }
.stat-tile .go {
  margin-top: auto; padding-top: 10px; font-family: var(--font-head);
  font-weight: 700; font-size: 12.5px; color: var(--indigo-dark);
  display: inline-flex; align-items: center; gap: 6px;
}
.tile-indigo .go { color: #fff; }

@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat-tile.tile-soft { grid-column: span 2; } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } .stat-tile.tile-indigo, .stat-tile.tile-soft { grid-column: span 1; } }

/* ---------- Flow list (index) ---------- */

.flow-list { margin-top: 44px; display: grid; gap: 0; }
.flow-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center;
  padding: 24px 8px; border-top: 1px solid var(--border);
}
.flow-item:last-child { border-bottom: 1px solid var(--border); }
.flow-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--indigo-soft);
  color: var(--indigo-dark); display: grid; place-items: center; font-size: 22px;
}
.flow-item h3 { font-size: 17px; font-weight: 700; }
.flow-item p { font-size: 14.5px; color: var(--muted); margin-top: 3px; max-width: 60ch; }
.flow-link {
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  color: var(--indigo-dark); white-space: nowrap;
}
@media (max-width: 640px) {
  .flow-item { grid-template-columns: 48px 1fr; }
  .flow-link { grid-column: 2; justify-self: start; }
}

/* ---------- Deep-dive cards (index) ---------- */

.dive-grid {
  margin-top: 44px; display: grid; gap: 16px;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.dive-col { display: grid; gap: 16px; align-content: start; }
.dive-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 30px 28px; color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.dive-card:hover { border-color: var(--indigo); text-decoration: none; transform: translateY(-2px); }
.dive-card .ph, .dive-card .ph-fill {
  font-size: 26px; color: var(--indigo);
}
.dive-card h3 { font-size: 19px; font-weight: 700; margin-top: 14px; }
.dive-card p { font-size: 15px; color: var(--muted); margin-top: 8px; }
.dive-card .go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: var(--indigo-dark);
}
.dive-card.featured { background: linear-gradient(150deg, #ffffff 0%, var(--indigo-soft) 100%); border-color: var(--indigo-border); }
@media (max-width: 860px) { .dive-grid { grid-template-columns: 1fr; } }

/* ---------- Walkthrough layout ---------- */

.wt-layout {
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px; padding: 56px 0 96px; align-items: start;
}
.wt-sidebar { position: sticky; top: 96px; }
.wt-sidebar h2 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.wt-sidebar ol { list-style: none; display: grid; gap: 2px; }
.wt-sidebar a {
  display: block; padding: 9px 14px; border-radius: 10px; border-left: 3px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--body);
}
.wt-sidebar a:hover { background: var(--surface-alt); text-decoration: none; }
.wt-sidebar a.active { background: var(--indigo-soft); border-left-color: var(--indigo); color: var(--indigo-dark); }
.wt-sections { display: grid; gap: 72px; }
.wt-section { scroll-margin-top: 96px; }
.wt-section h2 { font-size: 24px; font-weight: 700; }
.wt-section > p { margin-top: 12px; max-width: 66ch; font-size: 16px; }
.wt-section .video-slot { margin-top: 24px; }
.wt-covers { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wt-covers .covers-label {
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 4px;
}
.wf-list-wrap { margin-top: 20px; }
.wf-label {
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.wf-list { list-style: none; margin-top: 10px; display: grid; gap: 6px; }
.wf-list li {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; color: var(--body);
}
.wf-list li .ph { color: var(--indigo); font-size: 15px; flex-shrink: 0; }

.wt-part, .flow-part {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--indigo-dark); margin-bottom: 6px;
}
.wt-more, .flow-more {
  display: flex; gap: 14px; align-items: center;
  background: var(--indigo-soft); border: 1px dashed var(--indigo-border);
  border-radius: 16px; padding: 20px 22px; color: var(--body);
}
.wt-more .ph { color: var(--indigo); font-size: 24px; flex-shrink: 0; }
.wt-more strong { color: var(--heading); font-family: var(--font-head); }
.flow-more { border-radius: 12px; margin-top: 8px; }
.flow-more .flow-icon { background: transparent; color: var(--indigo); }
.video-slot.has-video .video-play,
.video-slot.has-video { cursor: pointer; }
@media (max-width: 900px) {
  .wt-layout { grid-template-columns: 1fr; gap: 32px; }
  .wt-sidebar { position: static; }
  .wt-sidebar ol { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* ---------- Chips ---------- */

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--indigo-soft); border: 1px solid var(--indigo-border);
  color: var(--indigo-dark); border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.chip .ph { font-size: 14px; }
.chip-plain {
  background: var(--surface-alt); border-color: var(--border); color: var(--body);
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px;
}

/* ---------- Asset group blocks (tags / fields / values) ---------- */

.group-block { padding: 56px 0; border-bottom: 1px solid var(--border); }
.group-block:last-of-type { border-bottom: 0; }
.group-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.group-head h2 { font-size: 21px; font-weight: 700; }
.group-head .group-count {
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
  color: var(--muted); background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 12px;
}
.group-block > .wrap > p { margin-top: 10px; max-width: 68ch; font-size: 15.5px; color: var(--muted); }
.chip-row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- AI Agents ---------- */

#voice-ai .video-slot,
.agent-preview { margin-top: 24px; }

/* Conversation-AI visual (stands in for a video, intentionally) */
.agent-preview {
  display: flex; align-items: center; gap: 18px;
  padding: 24px 26px; border-radius: 16px;
  background: var(--indigo-soft); border: 1px solid var(--indigo-border);
}
.agent-preview-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-size: 28px;
  color: #fff; background: var(--indigo);
  box-shadow: 0 10px 26px rgba(37, 70, 181, 0.35);
}
.agent-preview-body strong {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 15px; color: var(--heading);
}
.agent-preview-body span {
  display: block; margin-top: 4px; font-size: 14px; color: var(--body);
}

.agent-caps { margin-top: 28px; }
.caps-label {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.cap-list {
  list-style: none; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.cap-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
}
.cap-list li .ph-fill { color: var(--indigo); font-size: 22px; flex-shrink: 0; line-height: 1.2; }
.cap-list li div strong {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 14.5px; color: var(--heading);
}
.cap-list li div {
  font-size: 13.5px; color: var(--muted); line-height: 1.5;
}
.cap-list li div strong { margin-bottom: 3px; }

/* ---------- Field list ---------- */

.field-type {
  font-family: var(--font-head); font-weight: 700; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: var(--indigo-dark); background: var(--indigo-soft);
  border: 1px solid var(--indigo-border); border-radius: 999px; padding: 4px 11px;
}

.field-list {
  margin-top: 22px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); overflow: hidden;
}
.field-row { padding: 14px 20px; border-top: 1px solid var(--border); }
.field-row:first-child { border-top: 0; }
.field-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-row-head h3 { font-size: 15px; font-weight: 700; }
.field-what { margin-top: 5px; font-size: 14px; color: var(--muted); }
.field-options { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- Custom value list ---------- */

.value-list {
  margin-top: 22px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); overflow: hidden;
}
.value-row { padding: 14px 20px; border-top: 1px solid var(--border); }
.value-row:first-child { border-top: 0; }
.value-row-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.value-row-head h3 { font-size: 15px; font-weight: 700; }
.value-merge {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 10px; max-width: fit-content;
}
.value-merge code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; color: var(--indigo-dark); word-break: break-all;
}
.copy-btn {
  border: 0; background: none; cursor: pointer; color: var(--muted);
  font-size: 15px; display: grid; place-items: center; padding: 2px;
}
.copy-btn:hover { color: var(--indigo); }
.value-what { margin-top: 5px; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .value-row-head { align-items: flex-start; } }

/* ---------- Overview video (index) ---------- */

.overview-grid {
  margin-top: 40px; display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 28px; align-items: start;
}
.overview-grid .callout { margin-top: 0; }
@media (max-width: 860px) { .overview-grid { grid-template-columns: 1fr; } }

/* ---------- Info callout ---------- */

.callout {
  margin-top: 36px; background: var(--indigo-soft); border: 1px solid var(--indigo-border);
  border-radius: 16px; padding: 24px 26px; display: flex; gap: 16px; align-items: flex-start;
}
.callout .ph-fill { color: var(--indigo); font-size: 24px; flex-shrink: 0; position: relative; top: 2px; }
.callout h3 { font-size: 15.5px; font-weight: 700; }
.callout p { font-size: 14.5px; margin-top: 4px; color: var(--body); }

/* ---------- Pager (prev/next between pages) ---------- */

.pager { display: flex; justify-content: space-between; gap: 14px; padding: 40px 0 72px; }
.pager a {
  display: flex; flex-direction: column; gap: 3px; padding: 18px 22px;
  border: 1px solid var(--border); border-radius: 16px; color: inherit; min-width: 220px;
  transition: border-color 0.15s ease;
}
.pager a:hover { border-color: var(--indigo); text-decoration: none; }
.pager .dir { font-family: var(--font-head); font-weight: 700; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pager .dest { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--heading); }
.pager a.next { text-align: right; margin-left: auto; }
@media (max-width: 620px) { .pager { flex-direction: column; } .pager a.next { margin-left: 0; text-align: left; } }

/* ---------- Footer ---------- */

.footer { background: var(--peri); margin-top: 40px; }
.footer-inner { padding: 44px 0; text-align: center; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 14px 26px;
}
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand span {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--heading);
}
.footer p { margin-top: 20px; color: rgba(255, 255, 255, 0.92); font-size: 13.5px; }

/* ============================================================
   AUTOMATIONS: index cards + detail timeline
   ============================================================ */

/* ---- family colors (meter dots on the index only) ---- */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.fam-email  { background: var(--indigo); }
.dot.fam-sms    { background: var(--sky); }
.dot.fam-notify { background: #E8A33D; }
.dot.fam-branch { background: var(--peri); }
.dot.fam-tag    { background: #8b8a97; }
.dot.fam-opp    { background: #2fa39a; }
.dot.fam-wait   { background: #c8c7d6; }

/* ---- index grid ---- */
.wf-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.wf-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 20px 18px; text-decoration: none; color: inherit;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.wf-card:hover { border-color: var(--indigo); box-shadow: 0 14px 34px rgba(16,145,162,.10); transform: translateY(-2px); text-decoration: none; }
.wf-card-top { display: flex; align-items: center; justify-content: space-between; }
.wf-num { font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.wf-num.big { font-size: 15px; }
.wf-badge { font-family: var(--font-head); font-weight: 700; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.wf-badge.live { background: #e8f7ef; color: #1f9254; }
.wf-card h3 { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; line-height: 1.3; color: var(--heading); }
.wf-sum { font-size: 13.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.wf-meter { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 2px; }
.wf-stat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--body); }
.wf-go { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-family: var(--font-head); font-weight: 700; font-size: 12.5px; color: var(--indigo); }
.wf-go .ph { transition: transform .16s; }
.wf-card:hover .wf-go .ph { transform: translateX(3px); }

/* ---- detail hero ---- */
.wf-hero { background: var(--surface-alt); border-bottom: 1px solid var(--border); padding: 34px 0 30px; }
.wf-back { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 700; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.wf-back:hover { color: var(--indigo); text-decoration: none; }
.wf-hero-head { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.wf-hero h1 { margin-top: 10px; font-size: 30px; }
.wf-hero-sum { margin-top: 10px; max-width: 70ch; font-size: 15.5px; color: var(--muted); }
.wf-triggers { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }
.wf-trigger { display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--indigo-border); border-radius: 12px; padding: 10px 16px; }
.wf-trigger .trig-label { font-family: var(--font-head); font-weight: 700; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--indigo); display: inline-flex; align-items: center; gap: 6px; }
.wf-trigger strong { font-size: 14px; color: var(--heading); }

/* ---- timeline ---- */
.wf-detail-wrap { max-width: 700px; margin: 0 auto; padding: 0 24px; }
.wf-timeline { list-style: none; margin: 40px 0 20px; position: relative; padding-left: 8px; }
.wf-timeline::before { content: ""; position: absolute; left: 26px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-step { position: relative; padding: 0 0 22px 62px; margin-left: calc(var(--depth, 0) * 26px); }
.tl-dot {
  position: absolute; left: 12px; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 2px solid var(--border); display: grid; place-items: center;
  color: var(--muted); font-size: 16px; z-index: 1;
}
.tl-dot.sm { width: 26px; height: 26px; left: 16px; font-size: 12px; }
.fam-email  .tl-dot { border-color: var(--indigo); color: var(--indigo); }
.fam-sms    .tl-dot { border-color: var(--indigo); color: var(--indigo); }
.fam-notify .tl-dot { border-color: #E8A33D; color: #d18a1e; }
.fam-branch .tl-dot { border-color: var(--peri); color: var(--peri); }
.fam-tag    .tl-dot { border-color: #8b8a97; color: #6f6e7b; }
.fam-opp    .tl-dot { border-color: #2fa39a; color: #2fa39a; }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 15px 18px; }

/* compact one-line row for opportunity / tag / flow steps (de-emphasized) */
.tl-compact { padding-bottom: 16px; }
.tl-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 3px 0; }
.tr-name { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--heading); }
.tr-detail { font-size: 12.5px; color: var(--muted); }
.tr-detail strong { color: var(--body); font-weight: 700; }

/* "This workflow also…" summary of omitted background steps */
.wf-empty { margin: 40px 0; font-size: 14.5px; color: var(--muted); }
.wf-also { margin: 14px 0 20px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px 20px; }
.wf-also .also-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wf-also .also-head .ph { font-size: 15px; }
.also-list { margin: 12px 0 0; padding-left: 4px; list-style: none; columns: 2; column-gap: 34px; }
.also-list li { position: relative; padding: 4px 0 4px 18px; font-size: 13.5px; color: var(--body); break-inside: avoid; }
.also-list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--peri); }
@media (max-width: 560px) { .also-list { columns: 1; } }
.st-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.st-type { font-family: var(--font-head); font-weight: 700; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-alt); border-radius: 999px; padding: 3px 10px; }
.st-name { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--heading); }
.st-body { margin-top: 10px; font-size: 14px; color: var(--body); line-height: 1.62; }
.st-body p { margin: 0 0 9px; }
.st-body p:last-child { margin-bottom: 0; }
.st-note { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* shared step-card body typography + type chips (email/sms/notify) */
.stc p { margin: 0 0 9px; font-size: 13.5px; line-height: 1.6; color: var(--body); }
.stc p:last-child { margin-bottom: 0; }
.type-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.type-chip.email { background: var(--indigo-soft); color: var(--indigo-dark); }
.type-chip.sms { background: #e9f6fc; color: #2d84ad; }

/* EMAIL: E1: email-client window (capped at real email width) */
.email-client { max-width: 600px; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 30px rgba(29,28,38,.06); }
.ec-chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.ec-chrome > span { width: 11px; height: 11px; border-radius: 50%; background: #d9d8e4; }
.ec-chrome > span:first-child { background: #f0a1a1; } .ec-chrome > span:nth-child(2) { background: #f5cf94; } .ec-chrome > span:nth-child(3) { background: #a6d8a6; }
.ec-stepname { margin-left: auto; font-family: var(--font-head); font-weight: 700; font-size: 11px; color: var(--muted); font-style: normal; }
.ec-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px 12px; }
.ec-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--indigo); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 14px; display: grid; place-items: center; flex: none; }
.ec-hmeta { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.ec-hmeta strong { font-family: var(--font-head); font-size: 14px; color: var(--heading); }
.ec-hmeta span { font-size: 12px; color: var(--muted); }
.ec-subject { padding: 0 18px 12px; font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--heading); border-bottom: 1px solid var(--border); }
.ec-body { padding: 16px 18px 18px; }

/* SMS: S3: accent card (email-width, faint tint, brand indigo accent) */
.sms-accent { max-width: 600px; background: var(--indigo-soft); border: 1px solid var(--indigo-border); border-left: 4px solid var(--indigo); border-radius: 12px; padding: 15px 17px; }
.sa-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.sa-head .ph-fill { color: var(--indigo); font-size: 20px; }
.sa-head strong { font-family: var(--font-head); font-size: 14px; color: var(--heading); flex: 1; }
.sa-foot { margin-top: 10px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
/* SMS type-chip matches the indigo accent */
.sms-accent .type-chip.sms { background: #fff; color: var(--indigo-dark); }

/* Internal Notification: N1: alert banner (email-width) */
.note-alert { max-width: 600px; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.na-band { display: flex; align-items: center; gap: 13px; background: var(--amber-soft); border-bottom: 1px solid var(--amber-border); padding: 14px 18px; }
.na-band .ph-fill { font-size: 22px; color: var(--amber); flex: none; }
.na-band small { display: block; font-size: 9.5px; letter-spacing: .1em; color: #b9791b; margin-bottom: 2px; }
.na-band > div { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--heading); line-height: 1.25; }
.na-body { padding: 14px 18px 16px; }
.na-to { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }

/* branch */
.st-branches { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.br { border-left: 3px solid var(--peri); padding: 6px 0 6px 12px; }
.br-else { border-left-color: var(--border); }
.br-name { font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: var(--heading); }
.br-seg { margin-top: 6px; }
.br-join { font-family: var(--font-head); font-weight: 700; font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.br-seg ul { list-style: none; margin: 3px 0 0; }
.br-seg li { font-size: 12.5px; color: var(--body); padding: 1px 0 1px 12px; position: relative; }
.br-seg li::before { content: "•"; position: absolute; left: 0; color: var(--peri); }

/* tags in a step */
.st-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }

/* wait connector */
.tl-wait { position: relative; padding: 0 0 22px 62px; margin-left: calc(var(--depth, 0) * 26px); }
.tl-wait-chip { display: inline-flex; align-items: center; gap: 7px; margin-left: -46px; background: #fff; border: 1px dashed var(--border); border-radius: 999px; padding: 5px 14px; font-family: var(--font-head); font-weight: 700; font-size: 12px; color: var(--muted); }
.tl-wait-chip .ph { color: #b6b5c4; }

/* merge-field token */
.mf { border-bottom: 1px dashed var(--indigo); color: var(--indigo-dark); cursor: help; white-space: nowrap; }
.mf:hover { background: var(--indigo-soft); }
.mf[data-raw]:hover::after {
  content: attr(data-raw); position: absolute; z-index: 20; transform: translateY(-125%);
  background: var(--heading); color: #fff; font-family: var(--font-body); font-size: 11.5px;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap; margin-left: -4px; pointer-events: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

@media (max-width: 620px) {
  .tl-step, .tl-wait { padding-left: 54px; margin-left: calc(var(--depth,0) * 14px); }
  .wf-timeline::before { left: 22px; }
  .tl-dot { left: 8px; }
}

/* ============================================================
   BRAND LAYER (neutral)
   ============================================================ */

/* cyan is a fill with black text; black is the frame */
.btn-primary { background: var(--brand-cyan); color: var(--brand-black); }
.btn-primary:hover { background: #8fe3cd; }
.section-title::after, .page-head h1::after { background: var(--brand-cyan); }
.section-title, .page-head h1 { text-transform: none; letter-spacing: -0.02em; }
.hero h1 { letter-spacing: -0.03em; }
.video-play { background: var(--brand-cyan); color: var(--brand-black); box-shadow: 0 12px 32px rgba(99, 214, 185, 0.35); }
.video-play:hover { background: #8fe3cd; }
.stat-tile.tile-indigo { background: var(--brand-black); border-color: var(--brand-black); }
.stat-tile.tile-indigo .num { color: var(--brand-cyan); }
.stat-tile.tile-indigo .sub { color: #b9eadc; }
.tile-indigo .go { color: var(--brand-cyan); }
.nav-brand img { width: 38px; height: 38px; }
.nav-brand span { text-transform: none; letter-spacing: -0.01em; font-size: 15px; }
.nav-brand span b { color: var(--indigo); font-weight: 700; }
.nav-brand small { text-transform: uppercase; }
.footer-brand { background: transparent; padding: 0; }
.footer-brand span { color: #fff; text-transform: none; letter-spacing: -0.01em; font-size: 16px; }
.footer-brand span b { color: var(--brand-cyan); }
.footer p { color: #b9eadc; }
.agent-preview-icon { background: var(--brand-black); color: var(--brand-cyan); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18); }

/* ---------- Video placeholder (designed; real Loom embeds replace it) ---------- */
.video-slot.is-placeholder {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(99, 214, 185, 0.28) 0%, rgba(99, 214, 185, 0) 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(37, 70, 181, 0.35) 0%, rgba(37, 70, 181, 0) 60%),
    var(--brand-black);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(18px, 4vw, 40px); color: #fff;
}
.video-slot.is-placeholder::after {
  content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(185, 234, 220, 0.35);
  border-radius: 10px; pointer-events: none;
}
.ph-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: 0.04em;
  color: var(--brand-black); background: var(--brand-cyan); border-radius: 999px; padding: 5px 12px;
}
.ph-badge .ph-fill { font-size: 14px; }
.ph-part {
  margin-top: clamp(10px, 2vw, 18px); font-family: var(--font-head); font-weight: 600;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #b9eadc;
}
.ph-title {
  margin-top: 4px; font-family: var(--font-head); font-weight: 700; color: #fff;
  font-size: clamp(19px, 2.6vw, 28px); line-height: 1.15; letter-spacing: -0.02em; max-width: 24ch;
}
.ph-caption { margin-top: 8px; font-size: clamp(13px, 1.4vw, 15px); color: rgba(255, 255, 255, 0.8); max-width: 46ch; }
.ph-mark {
  position: absolute; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 28px);
  width: clamp(36px, 6vw, 64px); height: auto; opacity: 0.9;
}
.ph-badge .ph { font-size: 14px; animation: ph-spin 1.6s linear infinite; }
@keyframes ph-spin { to { transform: rotate(360deg); } }
@media (max-width: 420px) {
  .ph-title { font-size: 17px; }
  .ph-caption { font-size: 12.5px; }
  .ph-mark { display: none; }
}

/* ---------- Empty-category panel (Tags) ---------- */
.empty-panel {
  margin: 48px auto 24px; display: flex; gap: 18px; align-items: flex-start;
  background: var(--indigo-soft); border: 1px solid var(--indigo-border);
  border-radius: 16px; padding: 26px 28px;
}
.empty-panel .ph-fill { font-size: 28px; color: var(--indigo); flex-shrink: 0; }
.empty-panel h2 { font-size: 19px; }
.empty-panel p { margin-top: 8px; font-size: 15px; max-width: 68ch; }
.empty-panel ul { margin: 10px 0 0 18px; font-size: 15px; }
.empty-panel li { margin-top: 4px; }

/* merge tokens may wrap on small screens */
@media (max-width: 620px) { .mf { white-space: normal; } }

/* ---------- Pipelines + calendar (index) ---------- */
.inside-list { margin-top: 28px; display: grid; gap: 14px; }
.inside-row { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.inside-head { display: flex; align-items: center; gap: 10px; }
.inside-head .ph { font-size: 20px; color: var(--indigo); }
.inside-head h3 { font-size: 16px; }
.inside-row p { margin-top: 8px; font-size: 14.5px; color: var(--muted); max-width: 72ch; }
.stage-row { list-style: none; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: st; }
.stage-row li {
  counter-increment: st; font-family: var(--font-head); font-weight: 600; font-size: 13px;
  background: var(--indigo-soft); border: 1px solid var(--indigo-border); color: var(--indigo-dark);
  border-radius: 999px; padding: 5px 12px;
}
.stage-row li::before { content: counter(st) "  "; color: var(--muted); font-weight: 500; }

/* ---------- Agent greeting ---------- */
.agent-greeting {
  margin-top: 22px; max-width: 640px; background: var(--brand-black); color: #fff;
  border-radius: 16px 16px 16px 4px; padding: 16px 20px; font-size: 16px; line-height: 1.5;
}
.agent-greeting span {
  display: block; font-family: var(--font-head); font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-cyan); margin-bottom: 6px;
}
.agent-preview, .group-block .video-slot { margin-top: 24px; }
/* 7 stat tiles: 2+1+1 / 1+1+1+1 */
.stat-tile.tile-soft { grid-column: auto; }
@media (max-width: 900px) { .stat-tile.tile-soft { grid-column: span 2; } }
@media (max-width: 520px) { .stat-tile.tile-soft { grid-column: span 1; } }

/* ---------- Client journey map (index #journey) ---------- */
.jm-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.jm-legend li { display: flex; align-items: center; gap: 8px; }
.jm-key { width: 22px; height: 14px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); }
.jm-key-ai { background: var(--indigo-soft); border-color: var(--indigo-border); border-left: 4px solid var(--brand-cyan); }
.jm-key-wf { border-color: var(--indigo); }
.jm-key-cal { border: 1.5px dashed var(--muted); }

.jm-wrap { max-width: 1440px; margin: 32px auto 0; padding: 0 24px; }
.jm-scroll { overflow-x: auto; padding-bottom: 8px; border-radius: 16px; }
.jm-scroll:focus-visible { outline: 3px solid var(--brand-cyan-deep); outline-offset: 4px; }
.jm-stages {
  list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px; min-width: 1240px;
}
.jm-stage { position: relative; display: flex; flex-direction: column; }
.jm-stage:not(:last-child)::after {
  content: ""; position: absolute; top: 15px; right: -21px; width: 0; height: 0;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid var(--brand-cyan-deep);
}
.jm-stage-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid var(--brand-cyan); }
.jm-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-grad-start), var(--brand-cyan-deep)); color: var(--brand-black);
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
}
.jm-stage-head h3 { font-size: 16px; font-weight: 700; }
.jm-nodes { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.jm-nodes > li { position: relative; }
.jm-nodes > li:not(.jm-branch) + li:not(.jm-branch)::before {
  content: ""; position: absolute; left: 50%; top: -10px; width: 2px; height: 10px; background: var(--indigo-border);
}
.jm-node {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  color: var(--body); font-size: 13.5px; line-height: 1.45;
}
a.jm-node { border-color: var(--indigo-border); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
a.jm-node:hover { text-decoration: none; border-color: var(--indigo); box-shadow: 0 4px 14px rgba(37, 70, 181, 0.12); }
a.jm-node:focus-visible, .jm-pipe a:focus-visible { outline: 3px solid var(--brand-cyan-deep); outline-offset: 2px; }
.jm-node strong { font-family: var(--font-head); font-size: 14.5px; font-weight: 700; color: var(--heading); line-height: 1.3; }
a.jm-wf strong { color: var(--indigo-dark); }
.jm-kind { font-family: var(--font-head); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.jm-ai { background: var(--indigo-soft); border-left: 4px solid var(--brand-cyan); }
.jm-cal { border: 1.5px dashed var(--muted); background: var(--surface-alt); }
.jm-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.jm-badge {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px;
  font-family: var(--font-head); font-size: 11px; font-weight: 600; white-space: nowrap;
}
.jm-badge-ai { background: var(--brand-cyan); color: var(--brand-black); }
.jm-badge-alert { background: var(--amber-soft); border: 1px solid var(--amber-border); color: #7a4b06; }
.jm-move, .jm-loop {
  display: inline-flex; align-items: flex-start; gap: 5px; align-self: flex-start;
  font-size: 12px; font-weight: 600; line-height: 1.35; border-radius: 8px; padding: 3px 8px;
}
.jm-move { background: var(--brand-black); color: #fff; }
.jm-move i { color: var(--brand-cyan); position: relative; top: 2px; }
.jm-loop { background: var(--surface-alt); color: var(--indigo-dark); border: 1px solid var(--indigo-border); }
.jm-loop i { position: relative; top: 2px; }
.jm-branch {
  font-family: var(--font-head); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--indigo-dark); margin-top: 6px;
}
.jm-branch:first-child { margin-top: 0; }
.jm-entries { display: flex; flex-direction: column; gap: 6px; }
.jm-entries span {
  display: flex; align-items: center; gap: 8px; background: var(--brand-black); color: #fff; border-radius: 10px;
  padding: 8px 12px; font-size: 13px; font-weight: 600; line-height: 1.3;
}
.jm-entries i { color: var(--brand-cyan); font-size: 16px; flex-shrink: 0; }

.jm-pipes { margin-top: 40px; display: grid; gap: 18px; }
.jm-pipes > h3 { font-size: 18px; }
.jm-pipe { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; align-items: start; }
.jm-pipe h4 { font-size: 14.5px; padding-top: 9px; }
.jm-pipe ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.jm-pipe li { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.jm-pipe-stage {
  background: var(--indigo-soft); border: 1px solid var(--indigo-border); border-radius: 8px;
  padding: 7px 12px; font-family: var(--font-head); font-size: 13.5px; font-weight: 600; color: var(--heading);
}
.jm-pipe-by { font-size: 12px; color: var(--muted); padding-left: 4px; }

@media (max-width: 860px) {
  .jm-stages { display: flex; flex-direction: column; gap: 34px; min-width: 0; }
  .jm-stage:not(:last-child)::after {
    top: auto; bottom: -26px; right: auto; left: 50%; margin-left: -8px;
    border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid var(--brand-cyan-deep); border-bottom: 0;
  }
  .jm-scroll { overflow-x: visible; }
  .jm-pipe { grid-template-columns: 1fr; gap: 8px; }
  .jm-pipe h4 { padding-top: 0; }
  .jm-pipe li { min-width: 0; flex: 1 1 140px; }
}


/* ============================================================
   Agency Snapshot additions
   ============================================================ */
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 16px; letter-spacing: -0.02em; color: var(--heading); }
.wm-glyph { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-black); position: relative; flex-shrink: 0; }
.wm-glyph::before, .wm-glyph::after { content: ""; position: absolute; border-radius: 3px; }
.wm-glyph::before { left: 6px; top: 6px; width: 8px; height: 14px; background: var(--brand-cyan); }
.wm-glyph::after { left: 16px; top: 6px; width: 4px; height: 8px; background: #fff; }
.nav-brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.15; }
.footer .wordmark { color: #fff; }
.footer .wm-glyph { background: #fff; }
.footer .wm-glyph::after { background: var(--brand-black); }
.ph-mark { width: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: rgba(255,255,255,0.85); }
.ph-mark .wm-glyph { width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,0.12); }
.ph-mark .wm-glyph::before { left: 4px; top: 4px; width: 6px; height: 12px; }
.ph-mark .wm-glyph::after { left: 12px; top: 4px; width: 4px; height: 6px; }
.inside-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin-top: 28px; }
.inside-grid > div { display: grid; gap: 14px; align-content: start; }
@media (max-width: 900px) { .inside-grid { grid-template-columns: minmax(0, 1fr); } }
.inside-row + .inside-row { margin-top: 0; }
.inside-grid ~ .inside-row { margin-top: 14px; }
.inside-kind { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.inside-row .chip-row { margin-top: 12px; }
.chip em { font-style: normal; color: var(--muted); }
.path-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--indigo-dark); background: var(--indigo-soft); border: 1px solid var(--indigo-border); border-radius: 999px; padding: 2px 10px; margin: 10px 16px 0; }
.tl-wait .path-chip { margin: 0 0 0 8px; }
.sa-head + .path-chip { margin-left: 16px; }
.wf-starts { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--heading); display: flex; gap: 6px; align-items: flex-start; }
.wf-starts i { color: var(--brand-cyan-deep); margin-top: 3px; flex-shrink: 0; }
.wf-sec-title { font-size: 18px; margin: 8px 0 18px; }
.wf-trig-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.agent-title { margin-top: 6px; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--indigo-dark); }
.wf-badge.sm { font-size: 10.5px; padding: 2px 7px; vertical-align: middle; }
.wf-list a { color: inherit; display: inline-flex; gap: 8px; align-items: center; }
.wf-list a:hover { color: var(--indigo); }
.mf { overflow-wrap: anywhere; }
.chip { max-width: 100%; overflow-wrap: anywhere; }
.value-merge code { overflow-wrap: anywhere; }
.note-panel { margin-top: 18px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; font-size: 14.5px; color: var(--muted); max-width: 72ch; }
.stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: minmax(0, 1fr); } }
.wt-extra-video { margin-top: 28px; }
.wt-extra-video h3 { font-size: 18px; }
.wt-extra-video p { margin-top: 4px; color: var(--muted); }
.wt-extra-video .video-slot { margin-top: 14px; }
/* ---------- Website assets page ---------- */
.web-offers { margin-top: 22px; display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .web-offers { grid-template-columns: minmax(0, 1fr); } }
.web-offer { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.web-offer h3 { font-size: 20px; margin-top: 4px; }
.web-sells { margin-top: 6px; font-size: 15px; }
.web-funnel { margin-top: 6px; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.web-steps { list-style: none; display: grid; gap: 10px; }
.web-steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.web-step-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-black); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.web-kind { display: block; font-family: var(--font-head); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-cyan-deep); }
.web-steps strong { font-family: var(--font-head); font-size: 15px; color: var(--heading); }
.web-steps p { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.web-offer .chip { align-self: flex-start; }
.inside-row p a { font-size: 14px; font-weight: 600; }
.web-sites { margin-top: 22px; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.web-site { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.web-site h3 { font-size: 19px; }
.web-site p { font-size: 14.5px; }
.web-site .web-headline { font-family: var(--font-head); font-weight: 600; color: var(--indigo-dark); font-size: 15.5px; }
.web-site-main { grid-column: 1 / -1; background: var(--indigo-soft); border-color: var(--indigo-border); }
.web-site .chip-row { margin-top: 6px; }
@media (max-width: 900px) { .web-sites { grid-template-columns: minmax(0, 1fr); } }
.web-funnels-head { padding-bottom: 0; }
.web-sub { font-size: 20px; }
