/* InsightDueDiligence — page pieces on top of the shared VerticalServe system (verticle-serve.css + style.css).
   The screenshot frame, galleries and the flow strip are the same as InsightResolve's; the rest is CW's own. */

.vs-shot{ max-width:1120px; margin:0 auto; border-radius:14px; overflow:hidden; border:1px solid #e6e8f5; background:#fff; box-shadow:0 34px 80px -34px rgba(11,31,58,.5); }
.vs-shot__bar{ display:flex; align-items:center; gap:7px; padding:10px 14px; background:#f4f6ff; border-bottom:1px solid #e6e8f5; }
.vs-shot__bar span{ width:11px; height:11px; border-radius:50%; background:#d3d8ee; flex:none; }
.vs-shot__bar span:nth-child(1){ background:#f0a6a0; } .vs-shot__bar span:nth-child(2){ background:#f4d08a; } .vs-shot__bar span:nth-child(3){ background:#a7dca9; }
.vs-shot__bar em{ margin-left:12px; font-style:normal; font-size:12px; color:#8089a8; font-family:ui-monospace,Menlo,monospace; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vs-shot img, .vs-shot picture{ width:100%; display:block; }
.vs-gallery{ display:grid; grid-template-columns:minmax(0,1fr); gap:48px; margin:26px auto 0; max-width:1120px; }
.vs-gallery--pair{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px; align-items:start; }
.vs-gallery figure{ margin:0; min-width:0; }
.vs-gallery .vs-shot{ max-width:none; box-shadow:0 22px 50px -28px rgba(11,31,58,.45); }
.vs-gallery figcaption, .vs-fig figcaption{ text-align:center; color:#6b7396; font-size:14px; line-height:1.5; margin-top:14px; }
.vs-gallery figcaption b, .vs-fig figcaption b{ color:#0b1f3a; }
.vs-fig{ margin:28px auto 0; max-width:1020px; }
.dd-fig--payments{ max-width:780px; margin-top:44px; }
.dd-fig--panel{ max-width:700px; margin-top:48px; }

.vs-flow{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; margin-top:26px; }
.vs-flow__step{ position:relative; background:#fff; border:1px solid var(--vs-line); border-radius:16px; padding:22px 18px 20px; box-shadow:var(--vs-shadow-1); }
.vs-flow__step .n{ display:inline-flex; width:34px; height:34px; align-items:center; justify-content:center; border-radius:10px; background:var(--vs-grad); color:#fff; font-weight:800; font-size:15px; margin-bottom:12px; }
.vs-flow__step h3{ font-size:17px; margin:0 0 6px; color:var(--vs-ink); }
.vs-flow__step p{ margin:0; color:#6b7396; font-size:14px; line-height:1.55; }
.vs-flow__step:after{ content:"\2192"; position:absolute; right:-14px; top:50%; transform:translateY(-50%); color:#b7bdd9; font-size:18px; }
.vs-flow__step:last-child:after{ content:""; }

.vs-link{ display:inline-block; margin-top:6px; font-size:14.5px; font-weight:600; color:#2563eb; text-decoration:none; }
.vs-link:hover{ color:#1d4ed8; } .vs-link i{ font-size:12px; margin-left:5px; }
.pod-card code, .vs-prose code{ background:#f1f3fb; border:1px solid #e6e8f5; border-radius:5px; padding:1px 6px; font-size:13.5px; color:#1e40af; }
.vs-pill{ display:inline-block; font-size:14px; font-weight:600; color:#3b3f5c; background:#fff; border:1px solid #e6e8f5; border-radius:999px; padding:7px 16px; }
.recent-area.section-padding2{ padding-top:86px; padding-bottom:86px; }
.vs-band--mist{ background:#f8f9ff; }

/* the autonomy ladder: four levels, the ceiling marked */
.dd-ladder{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-top:28px; }
.dd-ladder__step{ background:#fff; border:1px solid var(--vs-line); border-radius:16px; padding:20px 18px; position:relative; }
.dd-ladder__step .lvl{ font:800 13px ui-monospace,Menlo,monospace; color:var(--vs-violet-deep); letter-spacing:.06em; }
.dd-ladder__step h3{ font-size:18px; margin:6px 0 6px; color:var(--vs-ink); }
.dd-ladder__step p{ margin:0; color:#6b7396; font-size:14px; line-height:1.55; }
.dd-ladder__step--ceiling{ border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.15); }
.dd-ladder__step--off{ opacity:.62; }
.dd-ladder__tag{ position:absolute; top:-11px; right:14px; background:#2563eb; color:#fff; font-size:11.5px; font-weight:700; border-radius:999px; padding:3px 10px; }

/* the ten agents */
.dd-agents{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-top:24px; }
.dd-agent{ background:#fff; border:1px solid var(--vs-line); border-radius:14px; padding:16px; }
.dd-agent h3{ font-size:15.5px; margin:0 0 4px; color:var(--vs-ink); }
.dd-agent p{ margin:0; font-size:13.5px; color:#6b7396; line-height:1.5; }
.dd-agent .cap{ display:inline-block; margin-top:8px; font-size:11.5px; font-weight:700; color:#9a5b00; background:#fbefd9; border-radius:6px; padding:2px 8px; }

/* diagrams */
.dd-diagram{ background:#fbfcff; border:1px solid #e6e8f5; border-radius:16px; padding:22px; margin-top:28px; overflow-x:auto; }
.dd-diagram .mermaid{ text-align:center; min-width:0; }
.dd-diagram{ max-width:1040px; margin-left:auto; margin-right:auto; }
.dd-diagram .mermaid svg{ max-width:100% !important; height:auto; }
.dd-diagram--flow .mermaid + .mermaid{ margin-top:18px; padding-top:18px; border-top:1px dashed #e0e3f2; }
.dd-diagram--flow .mermaid svg{ max-height:300px; }
.dd-note{ color:#6b7396; font-size:13.5px; text-align:center; margin-top:10px; }

.dd-illustrative{ display:inline-block; font-size:12px; font-weight:600; color:#6b7396; background:#f1f3fb; border:1px solid #e6e8f5; border-radius:6px; padding:3px 9px; }
.vs-prose{ max-width:760px; margin:0 auto; color:#3b3f5c; font-size:16.5px; line-height:1.7; }
.vs-prose h2{ font-size:26px; margin:38px 0 10px; color:var(--vs-ink); }
.vs-prose h3{ font-size:20px; margin:28px 0 8px; color:var(--vs-ink); }
.vs-prose li{ margin:6px 0; }
.vs-table{ width:100%; border-collapse:collapse; font-size:14.5px; }
.vs-table th, .vs-table td{ text-align:left; padding:10px 12px; border-bottom:1px solid #e6e8f5; vertical-align:top; }
.vs-table th{ color:#0b1f3a; font-weight:700; background:#f6f7fd; }
.vs-table-wrap{ overflow-x:auto; border:1px solid #e6e8f5; border-radius:12px; margin:18px 0; }

@media(max-width:1199px){ .dd-agents{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:991px){
  .vs-flow{ grid-template-columns:repeat(2,minmax(0,1fr)); } .vs-flow__step:after{ content:""; }
  .dd-ladder{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .recent-area.section-padding2{ padding-top:56px; padding-bottom:56px; }
}
@media(max-width:767px){
  .vs-gallery, .vs-gallery--pair{ grid-template-columns:minmax(0,1fr); gap:28px; }
  .vs-flow, .dd-ladder{ grid-template-columns:1fr; }
  .dd-agents{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:420px){ .dd-agents{ grid-template-columns:1fr; } }

/* the 404's own small header: the site menu's padding doesn't apply here */
.dd-404-head{ display:block; padding:14px 15px; }
.dd-404-nav{ display:flex; flex-wrap:wrap; gap:6px 18px; margin:8px 0 0 !important; /* the template pulls every nav 200px right */ font-weight:600; font-size:15px; }
.dd-404-nav a{ padding:0 !important; margin:0 !important; white-space:nowrap; }

/* contact on a phone: the card's padding and the two-up rows shrink to fit */
@media(max-width:575px){
  .contact-grid{ grid-template-columns:minmax(0,1fr) !important; }
  .contact-card{ padding:22px 16px !important; min-width:0; }
  .contact-row{ grid-template-columns:minmax(0,1fr) !important; display:grid; }
  .contact-card input, .contact-card select, .contact-card textarea{ max-width:100%; min-width:0; }
}

/* the hero: the words, then the workspace at full width so it can be read */
.dd-hero .ai-hero__grid{ grid-template-columns:minmax(0,1fr); gap:44px; text-align:center; }
.dd-hero h1{ max-width:920px; margin-left:auto; margin-right:auto; }
.dd-hero p.lede{ max-width:780px; margin-left:auto; margin-right:auto; }
.dd-hero .ai-hero__cta, .dd-hero .ai-hero__proof{ justify-content:center; }
.dd-hero .ai-hero__shot .vs-shot{ max-width:1120px; }

/* a narrow screen (a panel, a phone) is shown at its own size, centred */
.vs-shot--narrow{ max-width:520px; }
.vs-shot img{ cursor:zoom-in; }
.vs-shot img:focus-visible{ outline:3px solid #2563eb; outline-offset:-3px; }

/* tabs over a set of screens: one at a time, at full width */
.dd-tabs{ max-width:1120px; margin:30px auto 0; }
.dd-tabs__list{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-bottom:22px; }
.dd-tabs__list button{ border:1px solid #e0e3f2; background:#fff; color:#3b3f5c; font-weight:600; font-size:14.5px; border-radius:999px; padding:8px 18px; cursor:pointer; }
.dd-tabs__list button[aria-selected="true"]{ background:#0b1f3a; border-color:#0b1f3a; color:#fff; }
.dd-tabs__list button:focus-visible{ outline:3px solid #2563eb; outline-offset:2px; }
.dd-tabs figure{ margin:0; }
.dd-tabs figcaption{ text-align:center; color:#6b7396; font-size:14px; line-height:1.5; margin-top:14px; }
.dd-tabs figcaption b{ color:#0b1f3a; }

/* click-to-zoom */
.dd-zoom{ position:fixed; inset:0; z-index:2000; background:rgba(14,12,40,.86); display:flex; align-items:center; justify-content:center;
  padding:max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.dd-zoom[hidden]{ display:none; }
.dd-zoom__frame{ max-width:min(1600px,100%); max-height:100%; overflow:auto; text-align:center; }
.dd-zoom__frame img{ max-width:100%; height:auto; border-radius:10px; box-shadow:0 30px 80px rgba(0,0,0,.5); background:#fff; }
.dd-zoom__cap{ color:#d7dbf3; font-size:14px; margin:12px auto 0; max-width:900px; }
.dd-zoom__close{ position:fixed; top:max(14px, env(safe-area-inset-top, 0px)); right:max(14px, env(safe-area-inset-right, 0px)); width:44px; height:44px; border-radius:50%;
  border:0; background:#fff; color:#0b1f3a; font-size:26px; line-height:44px; cursor:pointer; }
html.dd-zoom-open{ overflow:hidden; }

/* InsightDueDiligence additions */
.vs-shot--panel{ max-width:820px; }
.dd-tabs .vs-shot--panel{ margin:0 auto; }
.dd-agent--note{ background:#f3f8ff; border-style:dashed; }
.dd-hero .dd-note{ color:#c7cbe8; }
.uc-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:22px; }
.uc-tile{ display:flex; flex-direction:column; background:#fff; border:1px solid #e6e8f5; border-radius:16px; overflow:hidden; text-decoration:none !important; transition:.18s; box-shadow:0 10px 30px -22px rgba(11,31,58,.5); }
.uc-tile:hover{ transform:translateY(-3px); border-color:#60a5fa; box-shadow:0 22px 50px -24px rgba(11,31,58,.45); }
.uc-tile img{ width:100%; aspect-ratio:16/9; object-fit:cover; object-position:top left; border-bottom:1px solid #eef0f9; background:#f6f8fc; }
.uc-tile__k{ display:block; margin:16px 20px 0; font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#0f9a6e; }
.uc-tile h3{ margin:8px 20px 6px; font-size:18.5px; line-height:1.4; color:#0b1f3a; }
.uc-tile p{ margin:0 20px 20px; font-size:14.5px; color:#6b7396; line-height:1.6; }
.vs-brand__name{ white-space:nowrap; }
@media(max-width:420px){ .vs-brand__name{ font-size:19px; } }
h1, h2, h3, .vs-section-title{ overflow-wrap:break-word; }

/* =====================================================================================================================
   Look & feel v2 (to match insightclickiq.com): split hero with stat tiles, feature grid, screen rows, step-flow cards,
   card blog with thumbnails and filter chips, framed screens at a legible scale, branded diagrams.
   Brand tokens first (InsightDueDiligence blue + emerald); the block is shared with insightdealdesk.com.
   ===================================================================================================================== */
:root{
  --lf-brand:#2563eb; --lf-brand-deep:#1d4ed8; --lf-brand-2:#10b981; --lf-brand-3:#6ee7b7;
  --lf-ink:#0b1f3a; --lf-text:#4a4f6b; --lf-muted:#6b7396; --lf-faint:#8a90ac; --lf-line:#e6e8f5;
  --lf-tint:#eef4ff; --lf-tint-line:#bcd0f8;          /* the brand's light fill */
  --lf-ai:#0f9488; --lf-ai-tint:#ecfdf8; --lf-ai-line:#7fd8c6;   /* AI steps */
  --lf-navy-tint:#f1f4fc; --lf-navy-line:#c3cde6;      /* engine / system steps */
  --lf-person-tint:#f0fdf4; --lf-person-line:#9bd8b0; --lf-person:#15803d;   /* a person decides */
  --lf-grad:linear-gradient(135deg,#2563eb 0%,#1d4ed8 45%,#10b981 100%);
  --lf-grad-text:linear-gradient(90deg,#60a5fa,#34d399);
  --lf-shadow:0 24px 56px -30px rgba(11,31,58,.42);
}
.recent-area.section-tint{ background:#f8f9ff; }
.ai-hero h1 .grad, .ai-subhero h1 .grad{ background:var(--lf-grad-text); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }

/* ---- framed screens: a browser bar, never wider than the capture's own CSS size ---- */
.vs-shot{ border-color:#dfe3f2; width:fit-content; max-width:100%; margin-left:auto; margin-right:auto; }
.vs-shot__bar em{ color:#7a83a6; }
.vs-shot a, .vs-shot picture{ display:block; }
/* never wider than the capture's own CSS size (its width attribute): text stays as it reads in the product */
.vs-shot img{ width:auto; max-width:100%; height:auto; display:block; }
.lf-hero__shot .vs-shot, .lf-row__shot .vs-shot{ width:auto; }
.lf-hero__shot .vs-shot img, .lf-row__shot .vs-shot img{ width:100%; }
figure.shot{ margin:34px auto; max-width:var(--shot-w,900px); }
figure.shot .vs-shot{ max-width:100%; box-shadow:var(--lf-shadow); }
figure.shot img{ cursor:zoom-in; border:0; border-radius:0; box-shadow:none; }
figure.shot figcaption, .lf-fig figcaption{ text-align:center; color:var(--lf-muted); font-size:14.5px; line-height:1.6; margin:14px auto 0; max-width:760px; }
figure.shot figcaption b, .lf-fig figcaption b{ color:var(--lf-ink); font-weight:600; }
/* a capture wider than the text column breaks out of it (centred on the page), up to 1120 px */
.article-body figure.shot--wide{ width:min(var(--shot-w), calc(100vw - 32px)); max-width:none; position:relative; left:50%; transform:translateX(-50%); }
.article-body figure.post-hero-shot{ margin-top:0; margin-bottom:40px; }
.post-main{ padding-top:56px !important; }

/* ---- diagrams: one white card, the diagram at its own size (scaled down only to fit) ---- */
.mermaid, .cw-diagram{ background:#fff; border:1px solid var(--lf-line); border-radius:16px; padding:26px 22px; margin:30px 0;
  box-shadow:0 18px 44px -34px rgba(15,29,58,.45); overflow-x:auto; text-align:center; }
.cw-diagram .mermaid{ border:0; box-shadow:none; padding:0; margin:0; }
.mermaid:not([data-processed]){ color:transparent; min-height:120px; }
.mermaid svg{ max-width:100%; height:auto; display:inline-block; font-family:"Poppins","Segoe UI",sans-serif; }
.mermaid.lf-scroll svg{ max-width:none; }
.mermaid .node rect, .mermaid rect.basic, .mermaid rect.label-container{ rx:10px; ry:10px; }
.mermaid rect.actor{ rx:10px; ry:10px; }
.mermaid .cluster rect{ rx:14px; ry:14px; }
.mermaid .edgeLabel, .mermaid .edgeLabel p{ background:#fff !important; font-size:13px; color:#4a4f6b; }
.lf-diagram-note{ text-align:center; color:var(--lf-muted); font-size:13.5px; margin:-16px 0 26px; }

/* ---- split hero ---- */
.lf-hero{ padding:92px 0 84px; }
.lf-hero .ai-hero__grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.12fr); gap:56px; align-items:center; text-align:left; }
.lf-hero h1{ font-size:48px; line-height:1.12; margin:18px 0 18px; }
.lf-hero p.lede{ font-size:17.5px; line-height:1.68; color:#cdd3f0; max-width:560px; margin:0 0 30px; }
.lf-hero .ai-hero__cta{ justify-content:flex-start; }
.lf-stats{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:32px; max-width:600px; }
.lf-stats div{ border:1px solid rgba(255,255,255,.13); border-radius:12px; padding:12px 14px; background:rgba(255,255,255,.04); }
.lf-stats b{ display:block; color:#fff; font-size:21px; line-height:1.15; font-weight:700; }
.lf-stats span{ display:block; color:#aab3d6; font-size:12px; line-height:1.38; margin-top:4px; }
.lf-stats-note{ color:#8f98bf; font-size:12px; margin:10px 0 0; }
.lf-hero__shot{ margin:0; }
.lf-hero__stage{ position:relative; padding-bottom:96px; }
.lf-hero__shot .vs-shot{ max-width:none; box-shadow:0 34px 80px -34px rgba(0,0,0,.75); }
.lf-hero__float{ position:absolute; left:-44px; bottom:0; width:86%; border-radius:12px; overflow:hidden; background:#fff;
  border:1px solid #e3e6f3; box-shadow:0 30px 70px -20px rgba(0,0,0,.6); }
.lf-hero__float .lf-float-tag{ display:flex; align-items:center; gap:7px; padding:8px 12px; background:var(--lf-tint); color:var(--lf-brand-deep); font-size:12px; font-weight:700; letter-spacing:.04em; border-bottom:1px solid var(--lf-tint-line); }
.lf-hero__float img{ display:block; width:100%; height:auto; cursor:zoom-in; }
.lf-hero__shot figcaption{ color:#9fa8cc; font-size:13px; line-height:1.55; text-align:center; margin-top:14px; }

/* ---- feature grid ---- */
.lf-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin-top:34px; }
.lf-grid--3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.lf-card{ display:flex; flex-direction:column; background:#fff; border:1px solid var(--lf-line); border-radius:16px; padding:22px 20px 20px;
  text-decoration:none !important; box-shadow:0 10px 30px -24px rgba(15,29,58,.45); transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.lf-card:hover{ transform:translateY(-3px); border-color:var(--lf-tint-line); box-shadow:0 22px 46px -26px rgba(15,29,58,.5); }
.lf-card__icon{ width:44px; height:44px; border-radius:12px; background:var(--lf-grad); color:#fff; display:flex; align-items:center; justify-content:center; font-size:18px; margin-bottom:16px; box-shadow:0 8px 18px -8px rgba(37,99,235,.6); }
.lf-card h3{ font-size:17.5px; color:var(--lf-ink); margin:0 0 8px; line-height:1.35; }
.lf-card p{ font-size:14.5px; line-height:1.6; color:#56607c; margin:0 0 12px; }
.lf-card__more{ margin-top:auto; font-size:14px; font-weight:600; color:var(--lf-brand); }
.lf-card__more i{ font-size:12px; margin-left:4px; transition:transform .18s ease; }
a.lf-card:hover .lf-card__more i{ transform:translateX(4px); }
.lf-card .cap{ align-self:flex-start; display:inline-block; margin:0 0 12px; font-size:11.5px; font-weight:700; color:#1d4ed8; background:#e6efff; border-radius:6px; padding:2px 8px; }

/* ---- screen rows: a focused crop beside its caption, alternating sides ---- */
.lf-rows{ display:flex; flex-direction:column; gap:64px; margin-top:44px; }
.lf-row{ display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:52px; align-items:center; }
.lf-row:nth-child(even) .lf-row__shot{ order:2; }
.lf-row__shot{ margin:0; min-width:0; }
.lf-row__shot .vs-shot{ max-width:none; box-shadow:var(--lf-shadow); }
.lf-row__copy .n{ display:inline-flex; width:30px; height:30px; border-radius:9px; background:var(--lf-grad); color:#fff; font-weight:800; font-size:14px; align-items:center; justify-content:center; margin-bottom:14px; }
.lf-row__copy h3{ font-size:24px; color:var(--lf-ink); line-height:1.3; margin:0 0 10px; }
.lf-row__copy p{ font-size:16px; line-height:1.7; color:var(--lf-text); margin:0 0 12px; }
.lf-row__copy .vs-link{ margin-top:4px; }

/* ---- step-flow cards (the ClickIQ "from a question to the second it went wrong" pattern) ---- */
.lf-flow{ max-width:1120px; margin:36px auto 0; background:#fff; border:1px solid var(--lf-line); border-radius:18px; padding:22px; box-shadow:0 20px 50px -36px rgba(15,29,58,.45); }
.lf-flow__steps{ display:grid; grid-template-columns:repeat(var(--n,5),minmax(0,1fr)); gap:30px; }
.lf-step{ position:relative; border:1.5px solid var(--lf-navy-line); background:var(--lf-navy-tint); border-radius:13px; padding:14px 14px 16px; min-width:0; }
.lf-step:not(:last-child)::after{ content:""; position:absolute; top:50%; right:-24px; width:18px; height:2px; background:#8a94b8; }
.lf-step:not(:last-child)::before{ content:""; position:absolute; top:calc(50% - 5px); right:-27px; border:6px solid transparent; border-left:7px solid #8a94b8; border-right:0; }
.lf-step .num{ display:inline-flex; width:24px; height:24px; border-radius:50%; background:var(--lf-grad); color:#fff; font-size:12px; font-weight:700; align-items:center; justify-content:center; }
.lf-step .badge{ position:absolute; top:14px; right:12px; font-size:10.5px; font-weight:700; color:#fff; background:var(--lf-ai); border-radius:9px; padding:2px 8px; letter-spacing:.03em; }
.lf-step h4{ font-size:15.5px; line-height:1.3; margin:10px 0 6px; color:#1e2b4f; }
.lf-step p{ font-size:13.5px; line-height:1.52; color:#46506b; margin:0; }
.lf-step--plain{ background:#fff; border-color:#cfd5e6; } .lf-step--plain h4{ color:var(--lf-ink); }
.lf-step--ai{ background:var(--lf-ai-tint); border-color:var(--lf-ai-line); } .lf-step--ai h4{ color:#0f766e; }
.lf-step--brand{ background:var(--lf-tint); border-color:var(--lf-tint-line); } .lf-step--brand h4{ color:var(--lf-brand-deep); }
.lf-step--person{ background:var(--lf-person-tint); border-color:var(--lf-person-line); } .lf-step--person h4{ color:var(--lf-person); }
.lf-flow__note{ margin-top:16px; border:1.5px dashed #c3cbe0; border-radius:10px; background:#fafbfe; padding:10px 16px; text-align:center; font-size:13.5px; color:#46506b; }
.lf-flow__note b{ color:var(--lf-ink); }
.lf-flow figcaption, .lf-flow__cap{ text-align:center; color:var(--lf-muted); font-size:13.5px; margin:14px 0 0; }

/* ---- hub: three sources into the product, out to the record ---- */
.lf-hub{ max-width:1080px; margin:36px auto 0; display:grid; grid-template-columns:minmax(0,1.05fr) 44px minmax(0,.9fr) 44px minmax(0,.8fr); align-items:center; gap:0; }
.lf-hub__col{ display:flex; flex-direction:column; gap:14px; }
.lf-hub__node{ border:1.5px solid var(--lf-navy-line); background:#fff; border-radius:13px; padding:14px 16px; box-shadow:0 12px 30px -24px rgba(15,29,58,.45); }
.lf-hub__node b{ display:block; color:var(--lf-ink); font-size:15px; }
.lf-hub__node span{ display:block; color:#56607c; font-size:13px; line-height:1.45; margin-top:3px; }
.lf-hub__node em{ display:inline-block; font-style:normal; margin-top:8px; font-size:11.5px; font-weight:700; color:var(--lf-brand-deep); background:var(--lf-tint); border-radius:6px; padding:2px 8px; }
.lf-hub__node--core{ background:var(--lf-tint); border-color:var(--lf-tint-line); text-align:center; padding:24px 16px; }
.lf-hub__node--core b{ font-size:18px; }
.lf-hub__node--rec{ background:var(--lf-person-tint); border-color:var(--lf-person-line); text-align:center; }
.lf-hub__arrow{ height:2px; background:#8a94b8; position:relative; margin:0 6px; }
.lf-hub__arrow::after{ content:""; position:absolute; right:-2px; top:-5px; border:6px solid transparent; border-left:7px solid #8a94b8; border-right:0; }

/* ---- blog cards (index, home and "Keep reading") ---- */
.blog-index-hero{ padding:100px 0 60px; }
.blog-index-hero h1{ max-width:820px; }
.blog-index-lede{ max-width:640px !important; font-size:17px !important; color:#c7cbe8 !important; margin-bottom:0 !important; }
.blog-filter{ display:flex; flex-wrap:wrap; gap:9px; margin-top:26px; }
.blog-filter button{ font-size:13px; line-height:1; font-weight:600; padding:9px 15px; border-radius:999px; border:1px solid rgba(255,255,255,.22); background:transparent; color:#dfe3f7; cursor:pointer; transition:.15s; }
.blog-filter button.on, .blog-filter button:hover{ background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.55); color:#fff; }
.blog-list-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; }
.blog-empty{ text-align:center; color:var(--lf-muted); padding:40px 0; }
.post-card{ background:#fff; border:1px solid var(--lf-line); border-radius:16px; overflow:hidden; display:flex; flex-direction:column; text-decoration:none !important;
  box-shadow:0 10px 30px -22px rgba(15,29,58,.5); transition:transform .18s ease, box-shadow .18s ease; padding:0; }
.post-card:hover{ transform:translateY(-4px); box-shadow:0 22px 50px -24px rgba(15,29,58,.55); border-color:var(--lf-line); }
.post-card__img{ aspect-ratio:16/9; overflow:hidden; display:flex; align-items:center; justify-content:center; background:var(--lf-grad); border-bottom:1px solid #eef0fa; }
.post-card__img img{ width:100%; height:100%; object-fit:cover; object-position:top left; display:block; }
.post-card__img i{ font-size:42px; color:rgba(255,255,255,.92); }
.post-card__body{ padding:20px 22px 22px; display:flex; flex-direction:column; flex:1; }
.post-card__tag{ align-self:flex-start; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:4px 10px; border-radius:20px; background:var(--lf-tint); color:var(--lf-brand-deep); margin-bottom:12px; }
.post-card__title{ font-size:18.5px; line-height:1.36; color:var(--lf-ink); margin:0 0 10px; font-weight:700; }
.post-card__excerpt{ font-size:14.5px; color:#5b6486; line-height:1.6; margin:0 0 16px; flex:1; }
.post-card__meta{ font-size:12.5px; color:var(--lf-faint); }
.post-card__more{ margin-top:12px; font-size:14px; font-weight:600; color:var(--lf-brand); }
.post-card__more i{ font-size:12px; transition:transform .18s ease; }
.post-card:hover .post-card__more i{ transform:translateX(4px); }

@media(max-width:1199px){
  .lf-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lf-flow__steps{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .lf-step:nth-child(3n)::after, .lf-step:nth-child(3n)::before{ display:none; }
}
@media(max-width:991px){
  .lf-hero .ai-hero__grid{ grid-template-columns:minmax(0,1fr); gap:40px; }
  .lf-hero h1{ font-size:40px; }
  .lf-hero__float{ left:-10px; }
  .lf-row, .lf-row:nth-child(even){ grid-template-columns:minmax(0,1fr); gap:24px; }
  .lf-row:nth-child(even) .lf-row__shot{ order:0; }
  .blog-list-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lf-hub{ grid-template-columns:minmax(0,1fr); gap:0; max-width:520px; }
  .lf-hub__arrow{ width:2px; height:28px; margin:6px auto; }
  .lf-hub__arrow::after{ right:-5px; top:auto; bottom:-3px; border:6px solid transparent; border-top:7px solid #8a94b8; border-bottom:0; }
}
@media(max-width:767px){
  .lf-hero{ padding:64px 0 56px; }
  .lf-hero h1{ font-size:33px; }
  .lf-stats{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lf-hero__stage{ padding-bottom:0; }
  .lf-hero__stage > .vs-shot{ display:none; }          /* on a phone, the focused card alone */
  .lf-hero__float{ position:static; width:100%; }
  .lf-grid, .lf-grid--3{ grid-template-columns:minmax(0,1fr); }
  .lf-flow{ padding:16px; }
  .lf-flow__steps{ grid-template-columns:minmax(0,1fr); gap:22px; }
  .lf-step::after, .lf-step::before{ display:block !important; }
  .lf-step:not(:last-child)::after{ top:auto; bottom:-18px; right:auto; left:50%; width:2px; height:12px; }
  .lf-step:not(:last-child)::before{ top:auto; bottom:-22px; right:auto; left:calc(50% - 5px); border:6px solid transparent; border-top:7px solid #8a94b8; border-bottom:0; }
  .lf-step:last-child::after, .lf-step:last-child::before{ display:none !important; }
  .blog-list-grid{ grid-template-columns:minmax(0,1fr); }
  .blog-index-hero{ padding:70px 0 44px; }
  .mermaid, .cw-diagram{ padding:16px 12px; }
}

/* ---- layered architecture (replaces a sprawling flowchart): one row per layer, boxes that wrap ---- */
.lf-stack{ max-width:1100px; margin:36px auto 0; background:#fff; border:1px solid var(--lf-line); border-radius:18px; padding:24px; box-shadow:0 20px 50px -36px rgba(15,29,58,.45); }
.lf-layer{ display:grid; grid-template-columns:150px minmax(0,1fr); gap:18px; align-items:center; }
.lf-layer + .lf-layer{ margin-top:30px; position:relative; }
.lf-layer + .lf-layer::before{ content:""; position:absolute; top:-24px; left:calc(150px + 18px + 50%); width:2px; height:16px; background:#8a94b8; transform:translateX(-50%); }
.lf-layer + .lf-layer::after{ content:""; position:absolute; top:-10px; left:calc(150px + 18px + 50%); transform:translateX(-50%); border:6px solid transparent; border-top:7px solid #8a94b8; border-bottom:0; }
.lf-layer__label{ font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--lf-muted); line-height:1.4; }
.lf-layer__items{ display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:10px; }
.lf-box{ border:1.5px solid var(--lf-navy-line); background:var(--lf-navy-tint); border-radius:12px; padding:11px 14px; min-width:0; }
.lf-box b{ display:block; color:var(--lf-ink); font-size:14.5px; line-height:1.3; }
.lf-box span{ display:block; color:#56607c; font-size:13px; line-height:1.45; margin-top:3px; }
.lf-box code{ font-size:12.5px; background:none; border:0; padding:0; color:var(--lf-brand-deep); }
.lf-box--brand{ background:var(--lf-tint); border-color:var(--lf-tint-line); }
.lf-box--ai{ background:var(--lf-ai-tint); border-color:var(--lf-ai-line); }
.lf-box--data{ background:var(--lf-person-tint); border-color:var(--lf-person-line); }
.lf-box--plain{ background:#fff; border-color:#cfd5e6; }
.lf-stack figcaption{ text-align:center; color:var(--lf-muted); font-size:13.5px; margin-top:20px; }
@media(max-width:767px){
  .lf-stack{ padding:16px; }
  .lf-layer{ grid-template-columns:minmax(0,1fr); gap:8px; }
  .lf-layer + .lf-layer::before, .lf-layer + .lf-layer::after{ left:50%; }
  .lf-layer__items{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:400px){ .lf-layer__items{ grid-template-columns:minmax(0,1fr); } }
.cw-note a, .lf-flow__note a{ color:var(--lf-brand); font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.ai-hero .cw-note a, .ai-subhero .cw-note a{ color:var(--lf-brand-3); }
.dd-diagram{ background:#fff; border:1px solid var(--lf-line); border-radius:16px; padding:26px 22px; margin:30px auto; box-shadow:0 18px 44px -34px rgba(11,31,58,.45); overflow-x:auto; text-align:center; }
.dd-diagram .mermaid{ border:0; box-shadow:none; padding:0; margin:0; background:none; }
/* five step cards in a prose column: two rows on a laptop-width column */
.vs-prose .lf-flow__steps, .docs-main .lf-flow__steps{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.vs-prose .lf-step:nth-child(3n)::after, .vs-prose .lf-step:nth-child(3n)::before{ display:none; }
@media(max-width:767px){ .vs-prose .lf-flow__steps, .docs-main .lf-flow__steps{ grid-template-columns:minmax(0,1fr); } }
.vs-shot__bar{ min-width:0; overflow:hidden; } .vs-shot__bar em{ min-width:0; }
