/* 08 Going live, from v8 (Albert's pick): the team photo, with the five weeks drawn
   against six months on its glass card (Albert's pick), then three points and the note. Ahead of Figma.
   Redrawn 4 Nov: the plan is drawn in weeks on one scale (the Batteries Plus pilot's five in violet over the 26 of a
   six-month project), the points have no numbers, and Book a demo is the page's secondary button, as the Trust
   Center's is.
   Motion (once, as the card comes into view; /_assets/design/27fefe66087311d0/08-going-live.js): the weeks fill on one clock, so the pilot is live at
   week five while the project is still filling. Reduced motion and ?static: at rest. */

.going-live { padding-block: var(--space-9); }
.going-live-inner { display: flex; flex-direction: column; gap: var(--space-7); }
.going-live .section-head .t-title { text-wrap: balance; }
.going-live-keep { white-space: nowrap; }

/* The photograph (Albert's pick): in a glass-walled meeting room an engineer
   maps a phone call flow on a whiteboard while the customer's team lead follows; the people and the board in its right
   half, the glass wall on the left under the card (/_assets/design/962c0829cf81e791/mapping-calls.webp, gpt-image-2.5). Framed from its
   right edge, so the board stays in at every width. The pilot card sits over it on desktop and hangs 48 px below it on
   tablet and phone. */
.going-live-team { position: relative; display: flex; flex-direction: column; align-items: center; overflow: hidden; border-radius: var(--radius-lg); }
.going-live-photo {
  width: 100%; aspect-ratio: 1218 / 560; height: auto;
  object-fit: cover; object-position: 100% 50%; border-radius: var(--radius-lg);
}
.going-live-pilot {
  position: absolute; left: 40px; bottom: 40px; width: 476px;
  display: flex; flex-direction: column; gap: 20px; padding: 24px 24px 22px;
  border: 1px solid var(--surface-card); border-radius: var(--radius-md);   /* Figma counts the stroke in the layout */
  background: linear-gradient(180deg, rgb(var(--c-white-rgb) / .80), rgb(var(--c-panel-rgb) / .74));
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);   /* v8's blur, more than the glass's 14 px; the shadow is the glass's */
}

/* The plan in weeks. Both rows share one grid of 26 weeks, six months from the kick-off: the pilot fills its first
   five in violet, the six-month project all 26 in grey. The product's labels, 14 and 13. */
.gl-plan { display: flex; flex-direction: column; gap: 6px; align-self: stretch; }
.gl-label { font: 400 14px/20px var(--font-text); color: var(--ink-secondary); }
.gl-label--ours { color: var(--ink-primary); font-weight: 500; }
.gl-weeks { display: grid; grid-template-columns: repeat(26, minmax(0, 1fr)); align-items: center; gap: 3px; }
.gl-weeks i { height: 12px; border-radius: 3px; background: rgb(var(--c-midnight-rgb) / .10); }
.gl-weeks--ours { margin-bottom: 10px; }
.gl-weeks--ours i { background: var(--accent); box-shadow: inset 0 1px 0 rgb(var(--c-white-rgb) / .2), 0 4px 8px -4px rgb(var(--c-violet-rgb) / .7); }
.gl-pilot { grid-column: 7 / -1; font: var(--t-label); color: var(--ink-accent); white-space: nowrap; }
.gl-axis { display: flex; justify-content: space-between; margin-top: 2px; font: 400 13px/18px var(--font-text); color: var(--ink-secondary); }

.going-live-quote { align-self: stretch; padding-top: 18px; border-top: 1px solid rgb(var(--c-midnight-rgb) / .10); }
.going-live-quote p { font: 400 20px/30px var(--font-text); letter-spacing: -0.2px; color: var(--ink-primary); text-wrap: pretty; }
.going-live-by { margin-top: -8px; font: 400 14px/20px var(--font-text); color: var(--ink-secondary); }

/* Motion: the weeks wait empty until the card is in view, then fill on one clock, a week each 90 ms in both rows
   (/_assets/design/27fefe66087311d0/08-going-live.js gives each week its number, --k): the pilot is live at week five while the project has 21 weeks
   to go. */
.going-live-pilot.is-waiting .gl-weeks i { background: rgb(var(--c-midnight-rgb) / .045); box-shadow: none; }
.going-live-pilot.is-waiting .gl-pilot { opacity: 0; translate: -6px 0; }
.going-live-pilot.is-playing .gl-weeks i { transition: background-color 260ms var(--ease-settle), box-shadow 260ms var(--ease-settle);
  transition-delay: calc(var(--k, 0) * 90ms); }
.going-live-pilot.is-playing .gl-pilot { opacity: 1; translate: 0 0;
  transition: opacity var(--motion-state) var(--ease-settle) .55s, translate var(--motion-state) var(--ease-settle) .55s; }

/* The three points */
.going-live-steps { display: flex; gap: var(--space-6); }
.going-live-step {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding-top: 24px; border-top: 1px solid var(--border-strong);
}
.going-live-step .t-body { text-wrap: pretty; }

/* Note, and Book a demo as Button, Secondary M (40 high, 44 on phone; 20 px sides plus Figma's 1 px stroke) */
.going-live-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.going-live-note .t-body { text-wrap: pretty; }
.going-live-cta img { flex: none; }

@media (max-width: 1199px) {
  .going-live { padding-block: var(--space-8); }
  .going-live-inner { gap: var(--space-6); }
  .going-live-team { overflow: visible; border-radius: 0; }
  .going-live-photo { aspect-ratio: auto; height: 420px; margin-bottom: -48px; }
  .going-live-pilot { position: relative; left: auto; bottom: auto; width: calc(100% - 48px); }
  .going-live-steps { flex-direction: column; gap: var(--space-5); }
  .going-live-step { flex: none; padding-top: 20px; }
}

@media (max-width: 599px) {
  .going-live-photo { height: 280px; object-position: 93% 50%; }   /* the team lead's face in, the board's flow beside the engineer */
  .going-live-pilot { width: calc(100% - 24px); gap: 18px; padding: 20px 18px 18px; }
  .going-live-quote { padding-top: 16px; }
  .going-live-quote p { font-size: 18px; line-height: 27px; }
}
@media (max-width: 599px) { .gl-weeks { gap: 2px; } .gl-weeks i { height: 10px; border-radius: 2px; } }
@media (prefers-reduced-motion: reduce) { .going-live-pilot :is(.gl-weeks i, .gl-pilot) { transition: none; } }
