/* Shared imagery and diagrams. Inline page styles own layout; this file owns the visual components they add. */

/* Screenshots of shipped work, framed with a plain address bar. */
.shot { margin: 0; min-width: 0; }
.shot-frame { display: block; overflow: hidden; border: 1px solid var(--border-mid); border-radius: 8px; background: var(--surface); }
.shot-bar { padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--ink-faint); font: 500 10.5px/1.3 var(--mono); letter-spacing: .06em; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { max-width: 62ch; margin-top: 14px; color: var(--ink-dim); font-size: 14px; line-height: 1.6; }
.shot-block { max-width: 1040px; margin: 0 0 64px; }
.shot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; margin: 0 0 64px; }
.shot-pair img { aspect-ratio: 1.9; object-fit: cover; object-position: top center; }
.shot-section { padding-top: 72px; padding-bottom: 72px; }
.shot-section .shot-block { max-width: none; margin: 0; }

/* Blueprint panels: the same deep blue as the closing CTA, on a drafting grid, in both themes. */
.schema { position: relative; margin: 0 0 64px; padding: clamp(24px, 4vw, 48px); overflow: hidden; border-radius: 8px; color: #fff; background-color: #0d2463; background-image: linear-gradient(rgba(191, 219, 254, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(191, 219, 254, .07) 1px, transparent 1px); background-size: 32px 32px; }
.schema-title { margin: 0 0 8px; color: #fff; font: 600 clamp(19px, 2.2vw, 24px)/1.2 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.schema-note { max-width: 58ch; margin: 0 0 36px; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.6; }
.schema-label { display: block; margin-bottom: 14px; color: #bfdbfe; font: 500 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.schema-node { padding: 13px 16px; border: 1px solid rgba(191, 219, 254, .34); border-radius: 6px; background: rgba(10, 10, 18, .28); color: #fff; font-size: 14px; line-height: 1.35; }
.schema ul, .schema ol { margin: 0; padding: 0; list-style: none; }

.wire { fill: none; stroke: #93c5fd; stroke-width: 1.5; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; animation: wire-flow 1.4s linear infinite; }
.wire-broken { fill: none; stroke: rgba(191, 219, 254, .42); stroke-width: 1.5; stroke-dasharray: 3 9; vector-effect: non-scaling-stroke; }
@keyframes wire-flow { to { stroke-dashoffset: -12; } }

/* Many sources into one core, then an ordered path out. */
.flow-map { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) 48px minmax(0, 1fr); align-items: stretch; }
.flow-map-col { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.flow-map-col li { flex: 1; display: flex; }
.flow-map-col .schema-node { flex: 1; display: flex; align-items: center; }
.flow-map-wires { width: 100%; height: 100%; }
.flow-map-core { display: flex; flex-direction: column; justify-content: center; padding: 24px; border-radius: 6px; background: #fff; color: #0d2463; }
.flow-map-core strong { font: 600 clamp(20px, 2.2vw, 26px)/1.15 var(--display); letter-spacing: -.02em; }
.flow-map-core span { margin-top: 10px; color: rgba(13, 36, 99, .82); font-size: 14px; line-height: 1.5; }
.flow-map-col .schema-node b { margin-right: 12px; color: #bfdbfe; font: 500 11px var(--mono); }
.flow-map-mid { display: flex; flex-direction: column; }
.flow-map-mid .flow-map-core { flex: 1; }

/* A straight pipeline of steps. */
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.pipeline li { position: relative; display: flex; }
.pipeline .schema-node { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pipeline strong { font: 600 16px/1.2 var(--display); letter-spacing: -.01em; }
.pipeline span { color: rgba(255, 255, 255, .78); font-size: 13px; line-height: 1.45; }
.pipeline li:last-child .schema-node { border-color: #fff; background: #fff; color: #0d2463; }
.pipeline li:last-child span { color: rgba(13, 36, 99, .82); }
.pipeline li:not(:last-child)::after { content: ''; position: absolute; top: 50%; left: 100%; width: 28px; height: 0; border-top: 1.5px dashed #93c5fd; }

/* Before and after, as two drawings side by side. */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.compare svg { display: block; width: 100%; height: auto; }
.compare text { fill: #fff; font: 500 15px var(--body); text-anchor: middle; dominant-baseline: central; }
.compare .node-box { fill: rgba(10, 10, 18, .28); stroke: rgba(191, 219, 254, .34); }
.compare .hub-box { fill: #fff; }
.compare .hub-text { fill: #0d2463; font: 600 19px var(--display); }
.compare .gap-text { fill: #bfdbfe; font: 500 12.5px var(--mono); letter-spacing: .04em; }

@media (max-width: 1024px) {
  .pipeline { grid-template-columns: 1fr; gap: 20px; }
  .pipeline li:not(:last-child)::after { top: 100%; left: 24px; width: 0; height: 20px; border-top: 0; border-left: 1.5px dashed #93c5fd; }
}
@media (max-width: 860px) {
  .flow-map { grid-template-columns: 1fr; gap: 0; }
  .flow-map-wires { display: block; width: 72px; height: 36px; margin: 0 auto; }
  .flow-map-wires.is-fan { display: none; }
  .flow-map-col { gap: 8px; }
  .flow-map-fan-mobile { display: block; width: 72px; height: 36px; margin: 0 auto; }
  .compare { grid-template-columns: 1fr; }
  .compare text { font-size: 17px; }
  .compare .hub-text { font-size: 20px; }
  .compare .gap-text { font-size: 15px; }
  .shot-pair { grid-template-columns: 1fr; }
  .shot-section { padding-top: 48px; padding-bottom: 48px; }
}
@media (min-width: 861px) {
  .flow-map-fan-mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wire { animation: none; }
}

/* ── Service widgets ────────────────────────────────────────────────────────
   Small built illustrations of what each service does, in place of
   screenshots. Theme-aware cards. They play once when their row's .reveal
   gets .in, then rest on the finished state. */
.svw { position: relative; width: 100%; max-width: 360px; justify-self: end; padding: 14px; border: 1px solid var(--border-mid); border-radius: 10px; background: var(--surface); color: var(--ink); font-family: var(--body); box-shadow: 0 10px 28px var(--theme-shadow, rgba(13, 30, 64, .1)); }
.svw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.svw-label { color: var(--ink-faint); font: 500 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.svw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: var(--blue-light); color: var(--blue-ink, var(--blue-mid)); font: 500 9.5px/1 var(--mono); letter-spacing: .06em; }
.svw-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-mid); animation: svw-pulse 1.8s ease-in-out infinite; }
@keyframes svw-pulse { 50% { opacity: .35; } }

/* Shared play-once timing: each animated piece sets --i for its order. */
.svw [style*="--i"] { transition-delay: calc(450ms + var(--i) * 380ms); }

/* AI: a request comes in, the agent works through it, a person approves. */
.svw-msg { margin-bottom: 12px; padding: 10px 12px; border-radius: 4px 12px 12px 12px; background: var(--surface-2); font-size: 12.5px; line-height: 1.45; }
.svw-src { display: block; margin-bottom: 3px; color: var(--ink-faint); font: 500 9px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.svw-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.svw-steps li { display: flex; align-items: center; gap: 9px; font-size: 12px; line-height: 1.3; color: var(--ink-dim); opacity: 0; transform: translateY(4px); transition: opacity 300ms ease, transform 300ms ease; }
.svw-steps li i { flex: 0 0 auto; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-mid); }
.svw-steps li i::after { content: ''; width: 6px; height: 3.5px; margin-top: -2px; border: solid #fff; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.svw-steps li.is-wait { color: var(--ink); font-weight: 500; }
.svw-steps li.is-wait i { background: transparent; border: 1.5px dashed var(--blue-mid); }
.svw-steps li.is-wait i::after { display: none; }
.in .svw-steps li { opacity: 1; transform: none; }

/* Web: a wireframe fills in as a built page, then the launch checks pass. */
.svw-browser { overflow: hidden; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); }
.svw-bar { display: flex; align-items: center; gap: 4px; padding: 7px 9px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.svw-bar span { width: 6px; height: 6px; border-radius: 50%; background: var(--border-mid); }
.svw-bar em { margin-left: 8px; color: var(--ink-faint); font: 500 9px/1 var(--mono); font-style: normal; letter-spacing: .04em; }
.svw-page { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; padding: 14px 12px; }
.svw-copy { display: flex; flex-direction: column; gap: 6px; }
.svw-page b { display: block; border-radius: 3px; border: 1px dashed var(--border-mid); background: transparent; transition: background-color 350ms ease, border-color 350ms ease; }
.svw-b1 { width: 92%; height: 10px; }
.svw-b2 { width: 70%; height: 10px; }
.svw-b3 { width: 84%; height: 5px; margin-top: 3px; }
.svw-b4 { width: 60%; height: 5px; }
.svw-page .svw-btn { width: 46%; height: 13px; margin-top: 5px; border-radius: 999px; }
.svw-page .svw-media { height: 100%; min-height: 64px; border-radius: 5px; }
.in .svw-page b { border-color: transparent; background: var(--ink); }
.in .svw-page .svw-b3, .in .svw-page .svw-b4 { background: var(--border-mid); }
.in .svw-page .svw-btn { background: var(--blue-mid); }
.in .svw-page .svw-media { background: linear-gradient(135deg, var(--blue-mid), var(--blue, #1a3a8a)); }
.svw-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.svw-checks li { display: flex; align-items: center; gap: 7px; color: var(--ink-dim); font: 500 10px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .35; transition: opacity 300ms ease, color 300ms ease; }
.svw-checks li::before { content: ''; width: 12px; height: 12px; flex: 0 0 auto; border-radius: 50%; border: 1.5px solid var(--border-mid); box-sizing: border-box; transition: background-color 300ms ease, border-color 300ms ease; transition-delay: inherit; }
.in .svw-checks li { opacity: 1; color: var(--ink); }
.in .svw-checks li::before { border-color: var(--blue-mid); background: var(--blue-mid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 6.2l1.7 1.6 3.3-3.4' fill='none' stroke='%23fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* Business systems: a WhatsApp lead moves across the pipeline to Won. */
.svw-board { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; --lane: 42px; }
.svw-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.svw-col > span { height: 14px; color: var(--ink-faint); font: 500 8.5px/14px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svw-slot { height: var(--lane); border: 1px dashed var(--border-mid); border-radius: 5px; }
.svw-card { min-height: var(--lane); padding: 6px 7px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-2); font-size: 10.5px; line-height: 1.25; overflow: hidden; }
.svw-card b { display: block; margin-bottom: 2px; color: var(--blue-ink, var(--blue-mid)); font: 500 8px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.svw-mover { position: absolute; top: 20px; left: 0; width: calc((100% - 18px) / 4); height: var(--lane); border-color: var(--blue-mid); background: var(--surface); box-shadow: 0 6px 16px var(--theme-shadow, rgba(13, 30, 64, .14)); animation: svw-move 3.4s 600ms cubic-bezier(.65, 0, .35, 1) both paused; }
.in .svw-mover { animation-play-state: running; }
@keyframes svw-move {
  0%, 12% { transform: none; }
  30%, 42% { transform: translateX(calc(100% + 6px)); }
  60%, 72% { transform: translateX(calc(200% + 12px)); }
  90%, 100% { transform: translateX(calc(300% + 18px)); }
}

@media (max-width: 1024px) {
  .svw { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .svw-dot { animation: none; }
  .svw-steps li, .svw-page b, .svw-checks li, .svw-checks li::before { transition: none; }
  .svw-steps li { opacity: 1; transform: none; }
  .svw-page b { border-color: transparent; background: var(--ink); }
  .svw-page .svw-b3, .svw-page .svw-b4 { background: var(--border-mid); }
  .svw-page .svw-btn { background: var(--blue-mid); }
  .svw-page .svw-media { background: linear-gradient(135deg, var(--blue-mid), var(--blue, #1a3a8a)); }
  .svw-checks li { opacity: 1; color: var(--ink); }
  .svw-mover { animation: none; transform: translateX(calc(300% + 18px)); }
}
