/* Services page: "Blueprint comes alive". Loaded after pages.css.
   Draft = thin dashed off-white on an ink grid. Live = solid liquid gold, calls flowing.
   All motion-only states sit under .cg-motion; without it the page shows the live drawing. */

/* =========================================================
   Hero blueprint
   ========================================================= */
.sv-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.bp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.bp-sheet {
  position: relative; width: 100%; aspect-ratio: 640 / 440;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
  background: rgba(20, 20, 20, 0.55);
}
.bp-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bp-draft path { fill: none; stroke: rgba(255, 255, 255, 0.42); stroke-width: 1.5; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; }
.bp-mask-paths path { fill: none; stroke: #fff; stroke-width: 12; stroke-dasharray: 1; stroke-dashoffset: 0; }
.bp-live path { fill: none; stroke: var(--c-yellow); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.bp-notes text { font-size: 11px; font-weight: 600; fill: rgba(255, 255, 255, 0.5); letter-spacing: 0.02em; }
.bp-pulses circle { fill: #FFF3C4; opacity: 1; }

/* nodes are HTML, placed on the drawing's coordinates (640 x 440) */
.bp-node { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.bp-call { left: 12.5%; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bp-understand { left: 42.2%; top: 50%; }
.bp-book { left: 70.3%; top: 21.8%; }
.bp-route { left: 70.3%; top: 50%; }
.bp-capture { left: 70.3%; top: 78.2%; }
.bp-tools { left: 92.2%; top: 50%; }
.bp-box {
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  padding: 8px 12px; border-radius: 12px; min-width: 88px;
  background: var(--c-ink); border: 1px solid var(--c-yellow); color: var(--c-white);
  box-shadow: 0 0 0 4px rgba(255, 208, 44, 0.1);
}
.bp-box b { font-size: 14px; font-weight: 700; line-height: 1.2; }
.bp-box span { font-size: 11px; line-height: 1.3; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.bp-tools { min-width: 0; width: 84px; }
.bp-tools span { white-space: normal; }
.bp-box .bp-done { color: var(--c-yellow); font-weight: 700; }
.bp-box .bp-done::before { content: '\2713 '; }
.bp-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-yellow); }

/* Clara is the Call node */
.bp-clara.clara-ui { position: relative; inset: auto; padding: 0; gap: 0; }
.bp-clara .clara-orb { width: 96px; height: 96px; }
.cg-motion .bp-clara .clara-orb { width: 96px; height: 96px; }
.cg-motion .bp-clara .cg-clara-gl { width: 132px; height: 132px; margin: -66px 0 0 -66px; }
.bp-clara .clara-orb-core { width: 44px; height: 44px; }
.bp-clara .clara-stop { position: absolute; top: calc(100% + 28px); left: 50%; transform: translateX(-50%); white-space: nowrap; }
.bp.clara-active .bp-hint, .bp-sheet.clara-active ~ .bp-hint { visibility: hidden; }

.bp-titleblock {
  position: absolute; right: 12px; bottom: 10px; display: flex; gap: 12px; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45);
}
.bp-status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; }
.bp-status i { width: 6px; height: 6px; border-radius: 50%; background: #3DDC84; }
.bp-status em { font-style: normal; }
.bp-st-draft { display: none; }

/* ---- the sequence (motion only): blank -> draft drawn -> live ---- */
.cg-motion .bp[data-state="blank"] .bp-mask-paths path,
.cg-motion .bp[data-state="blank"] .bp-live path,
.cg-motion .bp[data-state="draft"] .bp-live path { stroke-dashoffset: 1; }
.cg-motion .bp .bp-mask-paths path { transition: stroke-dashoffset 0.7s ease-out; }
.cg-motion .bp .bp-mask-paths path:nth-child(2), .cg-motion .bp .bp-mask-paths path:nth-child(3), .cg-motion .bp .bp-mask-paths path:nth-child(4) { transition-delay: 0.45s; }
.cg-motion .bp .bp-mask-paths path:nth-child(n+5) { transition-delay: 0.9s; }
.cg-motion .bp .bp-live path { transition: stroke-dashoffset 0.6s ease-out; }
.cg-motion .bp .bp-live path:nth-child(2), .cg-motion .bp .bp-live path:nth-child(3), .cg-motion .bp .bp-live path:nth-child(4) { transition-delay: 0.45s; }
.cg-motion .bp .bp-live path:nth-child(n+5) { transition-delay: 0.9s; }

.cg-motion .bp[data-state="blank"] .bp-node,
.cg-motion .bp[data-state="blank"] .bp-notes text,
.cg-motion .bp[data-state="blank"] .bp-titleblock { opacity: 0; }
.cg-motion .bp .bp-node, .cg-motion .bp .bp-notes text, .cg-motion .bp .bp-titleblock { transition: opacity 0.5s ease-out 0.3s; }
.cg-motion .bp .bp-understand { transition-delay: 0.6s; }
.cg-motion .bp .bp-out { transition-delay: 1s; }
.cg-motion .bp .bp-tools { transition-delay: 1.3s; }

/* draft look for the boxes, then they switch on one after another */
.cg-motion .bp:not([data-state="live"]) .bp-box { border-style: dashed; border-color: rgba(255, 255, 255, 0.4); box-shadow: none; color: rgba(255, 255, 255, 0.7); }
.cg-motion .bp:not([data-state="live"]) .bp-done { visibility: hidden; }
.cg-motion .bp:not([data-state="live"]) .bp-tag { color: rgba(255, 255, 255, 0.55); }
.cg-motion .bp .bp-box { transition: opacity 0.5s ease-out 0.3s, border-color 0.4s ease-out, box-shadow 0.4s ease-out, color 0.4s ease-out; }
.cg-motion .bp[data-state="live"] .bp-understand { transition-delay: 0s, 0.35s, 0.35s, 0.35s; }
.cg-motion .bp[data-state="live"] .bp-out { transition-delay: 0s, 0.8s, 0.8s, 0.8s; }
.cg-motion .bp[data-state="live"] .bp-tools { transition-delay: 0s, 1.25s, 1.25s, 1.25s; }
.cg-motion .bp[data-state="live"] .bp-done { animation: pgPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both; }
.cg-motion .bp:not([data-state="live"]) .bp-pulses circle { opacity: 0; }
.cg-motion .bp[data-state="live"] .bp-notes text { fill: rgba(255, 255, 255, 0.32); }
.cg-motion .bp:not([data-state="live"]) .bp-st-draft { display: inline; }
.cg-motion .bp:not([data-state="live"]) .bp-st-live { display: none; }
.cg-motion .bp:not([data-state="live"]) .bp-status i { background: rgba(255, 255, 255, 0.4); }

/* =========================================================
   The call log: before (drafted, missed) and after (gold, won)
   ========================================================= */
.cg-motion .sv-log.is-armed .calllog > * { opacity: 0; transform: translateY(12px); transition: opacity 0.45s ease-out, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.cg-motion .sv-log.is-armed .calllog > .calllog-head { opacity: 1; transform: none; }
.cg-motion .sv-log.is-play .calllog > * { opacity: 1; transform: none; }
.cg-motion .sv-log.is-play .calllog > .is-missed { opacity: 0.6; }
.cg-motion .sv-log.is-play .calllog > :nth-child(2) { transition-delay: 0.15s; }
.cg-motion .sv-log.is-play .calllog > :nth-child(3) { transition-delay: 0.45s; }
.cg-motion .sv-log.is-play .calllog > :nth-child(4) { transition-delay: 1s; }
.cg-motion .sv-log.is-play .calllog > :nth-child(5) { transition-delay: 1.5s; }
.cg-motion .sv-log.is-play .calllog > :nth-child(6) { transition-delay: 1.8s; }
.sv-log .calllog-item.is-missed { border: 1px dashed rgba(26, 26, 26, 0.18); }
.cg-motion .sv-log .calllog-divider::before, .cg-motion .sv-log .calllog-divider::after { transform-origin: center; transition: transform 0.6s ease-out 1.05s; }
.cg-motion .sv-log.is-armed:not(.is-play) .calllog-divider::before,
.cg-motion .sv-log.is-armed:not(.is-play) .calllog-divider::after { transform: scaleX(0); }
.cg-motion .sv-log.is-play .is-won .calllog-tag { animation: pgPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s both; }

/* =========================================================
   The blueprint, part by part (module console)
   ========================================================= */
.sv-console { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 24px; align-items: stretch; }
.sv-mods { display: flex; flex-direction: column; gap: 8px; }
.sv-mod {
  position: relative; display: grid; grid-template-columns: 36px 28px minmax(0, 1fr); align-items: center; gap: 12px;
  width: 100%; padding: 12px 16px; text-align: left; cursor: pointer; overflow: hidden;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--c-ink);
  background: var(--c-white); border: 1px dashed rgba(26, 26, 26, 0.28); border-radius: 14px;
  transition: background-color 0.25s ease-out, border-color 0.25s ease-out, color 0.25s ease-out, transform 0.2s ease-out;
}
.sv-mod:hover { border-color: rgba(26, 26, 26, 0.6); transform: translateX(4px); }
.sv-mod:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 3px; }
.sv-mod-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--c-cloud); color: var(--c-ink); }
.sv-mod-ic svg { width: 20px; height: 20px; }
.sv-mod-n { font-size: 12px; font-weight: 700; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.sv-mod-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-mod.is-on { background: var(--c-ink); color: var(--c-white); border: 1px solid var(--c-ink); }
.sv-mod.is-on .sv-mod-ic { background: var(--c-yellow); color: var(--c-ink); }
.sv-mod.is-on .sv-mod-n { color: var(--c-yellow); }
.sv-mod-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--c-yellow); transform: scaleX(0); transform-origin: left; }
.sv-console.is-ticking .sv-mod.is-on .sv-mod-bar { animation: svTick 4.6s linear both; }
@keyframes svTick { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.sv-panel {
  display: flex; flex-direction: column; min-width: 0;
  padding: 24px; border-radius: 24px; background: var(--c-ink); color: var(--c-white);
  box-shadow: 0 24px 56px rgba(26, 26, 26, 0.16);
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 20px 20px;
}
.sv-panel-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.sv-panel-kicker b { color: var(--c-yellow); }
.sv-live-tag { color: #7EE2A8; }
.sv-panel h3 { margin: 8px 0 0; font-size: 24px; line-height: 1.2; color: var(--c-white); }
/* fixed size: descriptions are 1 or 2 lines, the box never changes height */
.sv-panel-head p { margin: 8px 0 0; height: 3em; overflow: hidden; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.7); }
.sv-stage { position: relative; flex: 1 1 auto; height: 220px; min-height: 220px; margin-top: 16px; }
.sv-demo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease-out, visibility 0s linear 0.3s; }
.sv-demo.is-on { opacity: 1; visibility: visible; transition: opacity 0.3s ease-out; }
.sd-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--c-yellow); color: var(--c-ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.sd-pill::before { content: '\2713'; }
.sd-final { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }

/* 01 answer */
.sd-clock { font-size: 56px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.sd-clock small { font-size: 18px; font-weight: 700; margin-left: 4px; color: rgba(255, 255, 255, 0.55); }
.sd-phone { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: var(--c-yellow); }
.sd-phone svg { width: 24px; height: 24px; }
.sd-answer { display: flex; align-items: center; gap: 16px; }
.sd-wave { display: flex; align-items: center; gap: 4px; height: 24px; }
.sd-wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--c-yellow); transform: scaleY(0.3); }

/* 02 qualify */
.sd-checks { list-style: none; margin: 0 0 40px; padding: 0; width: min(100%, 360px); display: flex; flex-direction: column; gap: 8px; }
.sd-checks li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); font-size: 14px; }
.sd-checks span { color: rgba(255, 255, 255, 0.55); }
.sd-checks b { font-weight: 700; }
.sd-checks b::after { content: ' \2713'; color: var(--c-yellow); }

/* 03 book */
.sd-week { display: grid; grid-template-columns: repeat(5, 48px); grid-auto-rows: 28px; gap: 6px; margin-bottom: 40px; }
.sd-day { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.55); text-align: center; align-self: end; }
.sd-week i { border-radius: 6px; background: rgba(255, 255, 255, 0.08); position: relative; }
.sd-week i.busy { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 4px, rgba(255, 255, 255, 0.04) 4px 8px); }
.sd-slot em { position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 700; color: var(--c-yellow); white-space: nowrap; }
.sd-week i.sd-slot { background: var(--c-yellow); }

/* 04 route */
.sd-queue { list-style: none; margin: 0 0 40px; padding: 0; width: min(100%, 360px); display: flex; flex-direction: column; gap: 8px; }
.sd-queue li { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.sd-q-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); flex: 0 0 auto; }
.sd-queue .sd-urgent { background: rgba(255, 208, 44, 0.16); color: var(--c-white); font-weight: 700; }
.sd-queue .sd-urgent .sd-q-dot { background: #FF6B5A; }

/* 05 capture */
.sd-summary { margin: 0 0 40px; width: min(100%, 380px); display: flex; flex-direction: column; gap: 6px; }
.sd-summary div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); font-size: 14px; }
.sd-summary dt { color: rgba(255, 255, 255, 0.5); }
.sd-summary dd { margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 06 connect */
.sd-hub { position: relative; width: 300px; height: 180px; max-width: 100%; }
.sd-hub svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sd-hub path { fill: none; stroke: var(--c-yellow); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sd-hub-core, .sd-hub-n { position: absolute; transform: translate(-50%, -50%); z-index: 1; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.sd-hub-core { left: 50%; top: 50%; background: var(--c-yellow); color: var(--c-ink); }
.sd-hub-n { background: var(--c-ink); border: 1px solid var(--c-yellow); color: var(--c-white); }
.sd-hub-n.n1 { left: 16.7%; top: 16.7%; } .sd-hub-n.n2 { left: 83.3%; top: 16.7%; }
.sd-hub-n.n3 { left: 16.7%; top: 83.3%; } .sd-hub-n.n4 { left: 83.3%; top: 83.3%; }

/* ---- demo sequences (motion only; restart each time a module switches on) ---- */
@keyframes sdIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sdPop { 0% { opacity: 0; transform: translateX(-50%) scale(0.8); } 100% { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes sdRing { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } }
@keyframes sdWave { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes sdSlot { 0% { background: rgba(255, 255, 255, 0.08); transform: scale(1); } 60% { transform: scale(1.18); } 100% { background: var(--c-yellow); transform: scale(1); } }
@keyframes sdReveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sdDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.cg-motion .sv-demo.is-play .sd-final { animation: sdPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 2.2s both; }
.cg-motion .sv-demo[data-demo="answer"].is-play .sd-phone { animation: sdRing 0.4s ease-in-out 0s 3; }
.cg-motion .sv-demo[data-demo="answer"].is-play .sd-answer { animation: sdIn 0.4s ease-out 1.3s both; }
.cg-motion .sv-demo[data-demo="answer"].is-play .sd-wave i { animation: sdWave 0.9s ease-in-out 1.5s infinite; }
.cg-motion .sv-demo[data-demo="answer"].is-play .sd-wave i:nth-child(2n) { animation-delay: 1.65s; }
.cg-motion .sv-demo[data-demo="answer"].is-play .sd-wave i:nth-child(3n) { animation-delay: 1.8s; }
.cg-motion .sv-demo[data-demo="qualify"].is-play li { animation: sdIn 0.4s ease-out both; }
.cg-motion .sv-demo[data-demo="qualify"].is-play li:nth-child(1) { animation-delay: 0.2s; }
.cg-motion .sv-demo[data-demo="qualify"].is-play li:nth-child(2) { animation-delay: 0.8s; }
.cg-motion .sv-demo[data-demo="qualify"].is-play li:nth-child(3) { animation-delay: 1.4s; }
.cg-motion .sv-demo[data-demo="book"].is-play .sd-slot { animation: sdSlot 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both; }
.cg-motion .sv-demo[data-demo="book"].is-play .sd-slot em { animation: sdIn 0.3s ease-out 1.4s both; }
.cg-motion .sv-demo[data-demo="route"] .sd-queue li { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.cg-motion .sv-demo[data-demo="route"].is-play .sd-queue li { animation: svRouteDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both; }
.cg-motion .sv-demo[data-demo="route"].is-play .sd-queue .sd-urgent { animation: svRouteUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both; }
@keyframes svRouteDown { from { transform: none; } to { transform: translateY(48px); } }
@keyframes svRouteUp { from { transform: none; } to { transform: translateY(-96px); } }
.cg-motion .sv-demo[data-demo="capture"].is-play dd { animation: sdReveal 0.45s ease-out both; }
.cg-motion .sv-demo[data-demo="capture"].is-play div:nth-child(1) dd { animation-delay: 0.2s; }
.cg-motion .sv-demo[data-demo="capture"].is-play div:nth-child(2) dd { animation-delay: 0.6s; }
.cg-motion .sv-demo[data-demo="capture"].is-play div:nth-child(3) dd { animation-delay: 1s; }
.cg-motion .sv-demo[data-demo="capture"].is-play div:nth-child(4) dd { animation-delay: 1.4s; }
.cg-motion .sv-demo[data-demo="connect"].is-play .sd-hub path { animation: sdDraw 0.4s ease-out both; }
.cg-motion .sv-demo[data-demo="connect"].is-play .sd-hub-n { animation: sdNode 0.35s ease-out both; }
@keyframes sdNode { from { opacity: 0.25; } to { opacity: 1; } }
.cg-motion .sv-demo[data-demo="connect"].is-play path:nth-child(1), .cg-motion .sv-demo[data-demo="connect"].is-play .n1 { animation-delay: 0.3s; }
.cg-motion .sv-demo[data-demo="connect"].is-play path:nth-child(2), .cg-motion .sv-demo[data-demo="connect"].is-play .n2 { animation-delay: 0.7s; }
.cg-motion .sv-demo[data-demo="connect"].is-play path:nth-child(3), .cg-motion .sv-demo[data-demo="connect"].is-play .n3 { animation-delay: 1.1s; }
.cg-motion .sv-demo[data-demo="connect"].is-play path:nth-child(4), .cg-motion .sv-demo[data-demo="connect"].is-play .n4 { animation-delay: 1.5s; }

/* =========================================================
   Compare: parts on the bench vs assembled and running
   ========================================================= */
.sv-compare-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.sv-compare-copy .cg-ask { margin: 16px 0 0; }
.sv-compare-hint { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--c-muted); display: inline-flex; gap: 8px; align-items: center; }
.sv-compare-hint span { font-size: 18px; color: var(--c-ink); }
.sv-compare { --x: 50%; position: relative; height: 380px; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 56px rgba(26, 26, 26, 0.14); user-select: none; }
.sv-cmp-layer { position: absolute; inset: 0; padding: 24px; }
.sv-cmp-run { background: var(--c-ink); color: var(--c-white); padding-left: calc(24px + 8%); }
.sv-cmp-bench {
  background-color: #EFEBE1;
  background-image: linear-gradient(rgba(26, 26, 26, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 26, 26, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--c-ink);
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
}
.sv-compare.is-nudge .sv-cmp-bench { transition: clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
.sv-compare.is-nudge .sv-cmp-handle { transition: left 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
.sv-cmp-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.sv-cmp-run .sv-cmp-head { color: #7EE2A8; justify-content: flex-end; }
.sv-cmp-bench .sv-cmp-head { color: var(--c-muted); }
.sv-cmp-checks { list-style: none; margin: 32px 0 0 auto; padding: 0; width: min(100%, 360px); display: flex; flex-direction: column; gap: 12px; }
.sv-cmp-checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.sv-cmp-checks li::before { content: '\2713'; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c-yellow); color: var(--c-ink); font-size: 13px; font-weight: 800; }
.sv-bench { margin-top: 24px; width: min(100%, 340px); display: flex; flex-direction: column; gap: 8px; }
.sb-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border: 1px dashed rgba(26, 26, 26, 0.3); border-radius: 10px; font-size: 14px; background: rgba(255, 255, 255, 0.5); }
.sb-select { color: var(--c-muted); }
.sb-toggle { width: 32px; height: 18px; border-radius: 999px; background: rgba(26, 26, 26, 0.2); position: relative; }
.sb-toggle::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.sb-prompt { padding: 8px 12px; border: 1px dashed rgba(26, 26, 26, 0.3); border-radius: 10px; font-size: 13px; color: var(--c-muted); background: rgba(255, 255, 255, 0.5); font-family: ui-monospace, Consolas, monospace; }
.sb-prompt i { font-style: normal; animation: sbCaret 1s steps(1) infinite; }
@keyframes sbCaret { 50% { opacity: 0; } }
.sb-missing, .sb-todo { font-size: 12px; font-weight: 700; color: #8A6D00; }
.sb-err { font-size: 12px; font-weight: 700; color: #C0392B; }
.sv-cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--c-yellow); pointer-events: none; z-index: 2; }
.sv-cmp-handle span {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: var(--c-yellow); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.sv-cmp-handle span::before { content: '\2039\2003\203A'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; font-weight: 800; color: var(--c-ink); letter-spacing: -2px; }
.sv-cmp-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.sv-compare:focus-within .sv-cmp-handle span { box-shadow: 0 0 0 4px rgba(255, 208, 44, 0.45), 0 8px 24px rgba(0, 0, 0, 0.25); }

/* =========================================================
   CTA as a drawing title block
   ========================================================= */
.sv-tb { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 20px; overflow: hidden; }
.sv-tb-main { padding: 48px; }
.sv-tb-main .h2 { margin-top: 8px; }
.sv-tb .pg-cta-text { margin-left: 0; margin-right: 0; max-width: 600px; }
.sv-tb-cells { margin: 0; display: grid; grid-template-rows: repeat(4, 1fr); border-left: 1px solid rgba(255, 255, 255, 0.18); }
.sv-tb-cells div { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 16px 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.sv-tb-cells div:first-child { border-top: 0; }
.sv-tb-cells dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.sv-tb-cells dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--c-white); }
.sv-tb-status { display: inline-flex; align-items: center; gap: 8px; color: #7EE2A8 !important; }
.sv-tb-status i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; }

/* =========================================================
   Desktop one-screen tuning
   ========================================================= */
@media (min-width: 1024px) and (min-height: 640px) {
  .cg-fit .sv-story .h2 { font-size: clamp(30px, 5vh, 46px); }
  .cg-fit .sv-parts .sv-mod { padding: clamp(8px, 1.3vh, 12px) 16px; }
  .cg-fit .sv-parts .sv-mods { gap: clamp(4px, 0.9vh, 8px); }
  .cg-fit .sv-stage { height: clamp(176px, 30vh, 240px); min-height: 0; }
  .cg-fit .sv-panel { padding: clamp(16px, 2.6vh, 24px) 24px; }
  .cg-fit .sv-panel h3 { font-size: clamp(20px, 3.2vh, 24px); }
  .cg-fit .sv-compare { height: clamp(300px, 54vh, 420px); }
  .cg-fit .sv-compare-sec .h2 { font-size: clamp(30px, 5vh, 46px); }
  .cg-fit .sv-tb-main { padding: clamp(24px, 4.4vh, 48px); }
}
@media (min-width: 1024px) and (min-height: 640px) and (max-height: 760px) {
  .cg-fit .sd-checks, .cg-fit .sd-queue, .cg-fit .sd-summary, .cg-fit .sd-week { margin-bottom: 32px; transform: scale(0.9); }
  .cg-fit .sd-hub { transform: scale(0.85); }
  .cg-fit .sd-clock { font-size: 44px; }
}

/* =========================================================
   Phones and tablets
   ========================================================= */
@media (max-width: 1023px) {
  .sv-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .sv-console { grid-template-columns: minmax(0, 1fr); }
  .sv-compare-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sv-tb { grid-template-columns: minmax(0, 1fr); }
  .sv-tb-cells { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
  .sv-tb-cells div { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.12); }
  .sv-tb-cells div:nth-child(odd) { border-left: 0; }
  .sv-tb-cells div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
}
@media (max-width: 767px) {
  .bp-box { min-width: 0; padding: 4px 8px; border-radius: 8px; }
  .bp-box b { font-size: 11px; }
  .bp-box span:not(.bp-done) { display: none; }
  .bp-box .bp-done { font-size: 10px; }
  .bp-tools { width: auto; }
  .bp-notes { display: none; }
  .cg-motion .bp-clara .clara-orb, .bp-clara .clara-orb { width: 56px; height: 56px; }
  .cg-motion .bp-clara .cg-clara-gl { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
  .bp-clara .clara-orb-core { width: 28px; height: 28px; }
  .bp-tag { font-size: 10px; }
  .bp-titleblock { font-size: 9px; gap: 6px; right: 8px; bottom: 6px; }
  .bp-titleblock > span:first-child { display: none; }

  /* modules: a swipeable chip row above the panel */
  .sv-mods { flex-direction: row; overflow-x: auto; gap: 8px; margin: 0 -24px; padding: 4px 24px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .sv-mods::-webkit-scrollbar { display: none; }
  .sv-mod { flex: 0 0 auto; width: auto; grid-template-columns: 28px auto; padding: 8px 12px; font-size: 14px; scroll-snap-align: center; }
  .sv-mod:hover { transform: none; }
  .sv-mod-ic { width: 28px; height: 28px; border-radius: 8px; }
  .sv-mod-ic svg { width: 16px; height: 16px; }
  .sv-mod-n { display: none; }
  .sv-mod-t { overflow: visible; }
  .sv-panel { padding: 20px; border-radius: 20px; }
  .sv-panel h3 { font-size: 20px; }
  .sv-panel-head p { height: 4.5em; font-size: 14px; }
  .sv-stage { height: 230px; }
  .sd-clock { font-size: 44px; }
  .sd-week { grid-template-columns: repeat(5, 40px); }
  .sd-hub { transform: scale(0.9); }

  .sv-compare { height: 460px; }
  .sv-cmp-run { padding-left: 24px; }
  .sv-cmp-checks { margin-top: 24px; gap: 8px; }
  .sv-cmp-checks li { font-size: 14px; }
  .sv-bench { width: 100%; }
  .sv-tb-main { padding: 24px; }
}

/* ---- refinements ---- */
.sv-parts-foot { margin: 24px 0 0; justify-content: center; }
.cg-fit .sv-parts-foot { margin-top: clamp(12px, 2.4vh, 24px); }
/* compare: each side's content lives in its own half, so both read fully at the start */
.sv-cmp-run { padding-left: calc(50% + 32px); }
.sv-cmp-run .sv-cmp-head { justify-content: flex-start; }
.sv-cmp-checks { margin: 24px 0 0; width: auto; }
.sv-cmp-bench > * { max-width: calc(50% - 40px); }
.sv-bench { width: auto; }
@media (max-width: 767px) {
  /* phones: full-width content; the bench wipes away to reveal the running system */
  .sv-cmp-run { padding-left: 24px; }
  .sv-cmp-bench > * { max-width: none; }
  .sv-compare.is-wipe .sv-cmp-bench { transition: clip-path 1.2s cubic-bezier(0.65, 0, 0.35, 1); }
  .sv-compare.is-wipe .sv-cmp-handle { transition: left 1.2s cubic-bezier(0.65, 0, 0.35, 1); }
}
/* compare box: compact rows on laptop screens so both halves always fit the box */
@media (min-width: 1024px) {
  .sv-compare { height: clamp(330px, 56vh, 420px); }
  .sv-cmp-checks { gap: clamp(6px, 1.2vh, 12px); }
  .sv-cmp-checks li { font-size: clamp(14px, 2.2vh, 16px); line-height: 1.4; }
  .sv-bench { gap: clamp(4px, 0.9vh, 8px); margin-top: clamp(16px, 2.6vh, 24px); }
  .sb-row, .sb-prompt { padding: clamp(4px, 0.8vh, 8px) 10px; font-size: 13px; }
}
@media (max-width: 1199px) and (min-width: 1024px) {
  .sv-cmp-checks li { font-size: 13px; }
  .sv-cmp-checks li::before { width: 20px; height: 20px; font-size: 11px; }
}
/* the narrowest phones need four reserved lines for the longest module description */
@media (max-width: 400px) { .sv-panel-head p { height: 6em; } }
/* narrow laptops: the compare box gets the full width (halves are too narrow beside the copy) */
@media (min-width: 1024px) and (max-width: 1100px) {
  .sv-compare-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sv-compare-copy .body-large { font-size: 15px; }
  .sv-compare { height: clamp(300px, 46vh, 380px); }
}
/* the handle never sits half outside the box at either end */
.sv-cmp-handle { left: clamp(22px, var(--x), calc(100% - 22px)); }
@media (max-width: 767px) { .sv-compare { height: 400px; } }

/* =========================================================
   Clara sync: the drawing is rebuilt on her words (data-state="sync")
   ========================================================= */
.cg-motion .bp.bp-instant *, .cg-motion .bp.bp-instant *::before { transition: none !important; animation: none !important; }
.cg-motion .bp[data-state="sync"] .bp-mask-paths path,
.cg-motion .bp[data-state="sync"] .bp-live path { stroke-dashoffset: 1; transition-delay: 0s !important; }
.cg-motion .bp[data-state="sync"] .bp-mask-paths path.is-drawn,
.cg-motion .bp[data-state="sync"] .bp-live path.is-gold { stroke-dashoffset: 0; }
.cg-motion .bp[data-state="sync"] .bp-mask-paths path { transition: stroke-dashoffset 0.55s ease-out; }
.cg-motion .bp[data-state="sync"] .bp-live path { transition: stroke-dashoffset 0.5s ease-out; }
.cg-motion .bp[data-state="sync"] .bp-node:not(.bp-call),
.cg-motion .bp[data-state="sync"] .bp-notes text { opacity: 0; transition: opacity 0.35s ease-out !important; }
.cg-motion .bp[data-state="sync"] .bp-node.is-drawn,
.cg-motion .bp[data-state="sync"] .bp-notes text.is-drawn { opacity: 1; }
/* a box switched on mid-sync gets the full live look */
.cg-motion .bp[data-state="sync"] .bp-box.is-gold { border-style: solid; border-color: var(--c-yellow); box-shadow: 0 0 0 4px rgba(255, 208, 44, 0.1); color: var(--c-white); transition-delay: 0s !important; }
.cg-motion .bp[data-state="sync"] .bp-box.is-gold .bp-done { visibility: visible; animation: pgPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.cg-motion .bp[data-state="sync"] .bp-call.is-gold .bp-tag { color: var(--c-yellow); }
.cg-motion .bp[data-state="sync"].is-flow .bp-pulses circle { opacity: 1; }
.cg-motion .bp[data-state="sync"].is-flow .bp-st-draft { display: none; }
.cg-motion .bp[data-state="sync"].is-flow .bp-st-live { display: inline; }
.cg-motion .bp[data-state="sync"].is-flow .bp-status i { background: #3DDC84; }
/* "test it on real caller situations": a test call runs the dashed draft */
.bp-testdot { fill: var(--c-white); opacity: 0; }
.cg-motion .bp.is-testing .bp-testdot { opacity: 1; }
.cg-motion .bp.is-testing .bp-draft path { stroke: rgba(255, 255, 255, 0.75); }
/* "going live": the status flashes */
.cg-motion .bp.is-flash .bp-status { animation: bpFlash 0.9s ease-out; }
@keyframes bpFlash { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7); border-color: #3DDC84; } 100% { box-shadow: 0 0 0 14px rgba(61, 220, 132, 0); } }
/* an Ask Clara answer lights its part of the drawing */
.bp-box.is-hl { animation: bpHl 1.4s ease-in-out infinite; }
@keyframes bpHl { 0%, 100% { box-shadow: 0 0 0 4px rgba(255, 208, 44, 0.1); } 50% { box-shadow: 0 0 0 8px rgba(255, 208, 44, 0.35); } }
@media (prefers-reduced-motion: reduce) { .bp-box.is-hl { animation: none; outline: 2px solid var(--c-yellow); } }

/* readable micro labels (they render small inside the scaled drawing) */
.bp-notes text { font-size: 13px; }
.bp-titleblock { font-size: 12px; }
/* the docked caption takes the invite's place under the drawing */
.bp-dock { top: calc(100% - 44px); }
.bp .clara-stop { display: none !important; }
/* laptops: the drawing is sized by the screen height so the docked caption always fits below it */
@media (min-width: 1024px) and (min-height: 640px) {
  .cg-fit .bp-sheet { width: min(100%, calc((100svh - 300px) * 640 / 440)); }
}
/* the docked caption matches the drawing's width */
@media (min-width: 1024px) and (min-height: 640px) {
  .cg-fit .bp-dock { left: 50%; right: auto; transform: translateX(-50%); width: min(100%, calc((100svh - 300px) * 640 / 440)); }
}
/* review pass: readable labels inside the drawing */
.bp-box span, .bp-box .bp-done { font-size: 12px; }
@media (max-width: 767px) {
  .bp-box b { font-size: 12px; }
  .bp-box .bp-done { font-size: 12px; }
  .bp-tag { font-size: 12px; }
  .bp-box { padding: 4px 6px; }
}
