/* InsightCW — 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(30,27,75,.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(30,27,75,.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:#1e1b4b; }
.vs-fig{ margin:28px auto 0; max-width:1020px; }

.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:#7c6cf0; text-decoration:none; }
.vs-link:hover{ color:#5b4bd6; } .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:#3730a3; }
.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 */
.cw-ladder{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-top:28px; }
.cw-ladder__step{ background:#fff; border:1px solid var(--vs-line); border-radius:16px; padding:20px 18px; position:relative; }
.cw-ladder__step .lvl{ font:800 13px ui-monospace,Menlo,monospace; color:var(--vs-violet-deep); letter-spacing:.06em; }
.cw-ladder__step h3{ font-size:18px; margin:6px 0 6px; color:var(--vs-ink); }
.cw-ladder__step p{ margin:0; color:#6b7396; font-size:14px; line-height:1.55; }
.cw-ladder__step--ceiling{ border-color:#7c6cf0; box-shadow:0 0 0 3px rgba(124,108,240,.15); }
.cw-ladder__step--off{ opacity:.62; }
.cw-ladder__tag{ position:absolute; top:-11px; right:14px; background:#7c6cf0; color:#fff; font-size:11.5px; font-weight:700; border-radius:999px; padding:3px 10px; }

/* the ten agents */
.cw-agents{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-top:24px; }
.cw-agent{ background:#fff; border:1px solid var(--vs-line); border-radius:14px; padding:16px; }
.cw-agent h3{ font-size:15.5px; margin:0 0 4px; color:var(--vs-ink); }
.cw-agent p{ margin:0; font-size:13.5px; color:#6b7396; line-height:1.5; }
.cw-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 */
.cw-diagram{ background:#fbfcff; border:1px solid #e6e8f5; border-radius:16px; padding:22px; margin-top:28px; overflow-x:auto; }
.cw-diagram .mermaid{ text-align:center; min-width:0; }
.cw-diagram{ max-width:1040px; margin-left:auto; margin-right:auto; }
.cw-diagram .mermaid svg{ max-width:100% !important; height:auto; }
.cw-note{ color:#6b7396; font-size:13.5px; text-align:center; margin-top:10px; }

.cw-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:#1e1b4b; 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){ .cw-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:""; }
  .cw-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, .cw-ladder{ grid-template-columns:1fr; }
  .cw-agents{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:420px){ .cw-agents{ grid-template-columns:1fr; } }

/* the 404's own small header: the site menu's padding doesn't apply here */
.cw-404-head{ display:block; padding:14px 15px; }
.cw-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; }
.cw-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 */
.cw-hero .ai-hero__grid{ grid-template-columns:minmax(0,1fr); gap:44px; text-align:center; }
.cw-hero h1{ max-width:920px; margin-left:auto; margin-right:auto; }
.cw-hero p.lede{ max-width:780px; margin-left:auto; margin-right:auto; }
.cw-hero .ai-hero__cta, .cw-hero .ai-hero__proof{ justify-content:center; }
.cw-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 #7c6cf0; outline-offset:-3px; }

/* tabs over a set of screens: one at a time, at full width */
.cw-tabs{ max-width:1120px; margin:30px auto 0; }
.cw-tabs__list{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-bottom:22px; }
.cw-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; }
.cw-tabs__list button[aria-selected="true"]{ background:#1e1b4b; border-color:#1e1b4b; color:#fff; }
.cw-tabs__list button:focus-visible{ outline:3px solid #7c6cf0; outline-offset:2px; }
.cw-tabs figure{ margin:0; }
.cw-tabs figcaption{ text-align:center; color:#6b7396; font-size:14px; line-height:1.5; margin-top:14px; }
.cw-tabs figcaption b{ color:#1e1b4b; }

/* click-to-zoom */
.cw-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)); }
.cw-zoom[hidden]{ display:none; }
.cw-zoom__frame{ max-width:min(1600px,100%); max-height:100%; overflow:auto; text-align:center; }
.cw-zoom__frame img{ max-width:100%; height:auto; border-radius:10px; box-shadow:0 30px 80px rgba(0,0,0,.5); background:#fff; }
.cw-zoom__cap{ color:#d7dbf3; font-size:14px; margin:12px auto 0; max-width:900px; }
.cw-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:#1e1b4b; font-size:26px; line-height:44px; cursor:pointer; }
html.cw-zoom-open{ overflow:hidden; }
