/* ==========================================================================
   Customers pages v2.1 — story layout with right-hand customer rail.
   Zero new colours; webflow tokens only.
   Accent discipline: --text--accent in the timeline and stat arrows only.
   ========================================================================== */

:root {
  --customer-nav-clear: 7.5rem;
  --customer-side: 16rem;
  /* memory purple — matches the product's Memories UI; no webflow purple exists */
  --customer-memory-ink: oklch(0.54 0.21 315);
  --customer-memory-border: oklch(0.78 0.12 315);
  --customer-memory-soft: oklch(0.965 0.025 315);
}

.customer_eyebrow:focus-visible,
.button:focus-visible { outline: 2px solid var(--base-colors--gem-teal); outline-offset: 3px; }

/* --- eyebrow -------------------------------------------------------------- */

.customer_eyebrow {
  font-family: "YTF millie mono", monospace;
  font-size: var(--_fonts---body--xsmall);
  letter-spacing: var(--_fonts---letter-spacing--large);
  text-transform: uppercase;
  color: var(--base-colors--dusty-green);
  padding-top: calc(var(--customer-nav-clear) + 2.25rem);
  margin: 0 0 1.5rem;
}

/* --- hero ----------------------------------------------------------------- */

.customer_hero {
  background-image: linear-gradient(180deg,
    var(--bg-gradient--start) 0%,
    var(--bg-gradient--middle) 55%,
    var(--bg-gradient--end) 100%);
}

.customer_hero-main {
  padding: 0 0 3.75rem;
  margin: 0;
  border-top: 0;
}

.customer_hero-title {
  font-family: "YTF giong", Georgia, serif;
  font-size: var(--_fonts---headings--h2);
  line-height: var(--_fonts---line-height--medium);
  letter-spacing: var(--_fonts---letter-spacing--small);
  color: var(--text--secondary);
  font-weight: 400;
  margin: 0;
  max-width: 46rem;
  text-wrap: pretty;
}

.customer_hero-sub {
  font-size: var(--_fonts---body--large);
  line-height: var(--_fonts---line-height--large);
  color: var(--text--primary);
  max-width: 40rem;
  margin: 1.75rem 0 0;
  text-wrap: pretty;
}

/* --- featured quote: the punch, opening the page --------------------------- */

.customer_feature {
  max-width: 60rem;
  margin: 3.5rem auto 4.75rem;
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.customer_feature-img { width: 100%; height: auto; display: block; }

.customer_feature-body { text-align: center; }

.customer_feature-accent { font-style: italic; font-weight: 700; color: var(--text--accent); }

.customer_feature-text {
  font-family: "YTF giong", Georgia, serif;
  font-size: var(--_fonts---headings--h3, 2.5rem);
  line-height: var(--_fonts---line-height--xmedium);
  letter-spacing: var(--_fonts---letter-spacing--small);
  color: var(--text--secondary);
  border: 0; padding: 0; margin: 0;
  text-wrap: pretty;
}

.customer_feature-name { font-size: var(--_fonts---body--regular); color: var(--text--secondary); margin: 1.75rem 0 0; }

.customer_feature-role {
  font-family: "YTF millie mono", monospace;
  font-size: var(--_fonts---body--xsmall);
  letter-spacing: var(--_fonts---letter-spacing--small);
  word-spacing: -0.3em;
  text-transform: uppercase;
  color: var(--text--primary);
  margin: .5rem 0 0;
}

/* --- story layout: main column + right rail -------------------------------- */

.customer_story-section { padding: 4.5rem 0 7rem; }

.customer_layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--customer-side);
  gap: 5rem;
  align-items: start;
}

.customer_main { min-width: 0; }

/* right rail */

.customer_side { position: sticky; top: 9rem; }

.customer_side-logo {
  height: 1.625rem; width: auto; display: block;
  margin: .25rem 0 1.75rem;
  padding-bottom: 1.75rem;
  box-sizing: content-box;
  border-bottom: 1px solid var(--borders--primary);
}

.customer_side-group + .customer_side-group { margin-top: 1.75rem; }

.customer_side-label {
  font-family: "YTF millie mono", monospace;
  font-size: var(--_fonts---body--xxsmall);
  letter-spacing: var(--_fonts---letter-spacing--large);
  text-transform: uppercase;
  color: var(--base-colors--cold-mid-grey);
  margin: 0 0 .625rem;
}

.customer_side-value {
  font-size: var(--_fonts---body--small);
  line-height: var(--_fonts---line-height--large);
  color: var(--text--secondary);
  margin: 0;
  text-wrap: pretty;
}

.customer_side-note {
  font-size: var(--_fonts---body--xsmall);
  line-height: var(--_fonts---line-height--large);
  color: var(--text--primary);
  margin: .25rem 0 0;
}

.customer_side-list { list-style: none; margin: 0; padding: 0; }

.customer_side-list li {
  font-size: var(--_fonts---body--small);
  line-height: var(--_fonts---line-height--large);
  color: var(--text--secondary);
}

.customer_side-list li + li { margin-top: .5rem; }

/* --- cover image ------------------------------------------------------------ */

.customer_cover { margin: 0 0 4.25rem; }

.customer_cover-img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--_sizes---border-radium--large);
  border: 1px solid var(--borders--primary);
}

/* --- challenge / solution ----------------------------------------------------- */

.customer_summary + .customer_summary { margin-top: 3.75rem; }

.customer_summary p.customer_summary-label {
  font-family: "YTF millie", sans-serif;
  font-size: var(--_fonts---headings--h6);
  line-height: var(--_fonts---line-height--xmedium);
  font-weight: 500;
  color: var(--text--secondary);
  margin: 0 0 1.5rem;
}

.customer_summary-list { list-style: none; margin: 0; padding: 0; }

.customer_summary-list li {
  font-size: var(--_fonts---body--large);
  line-height: var(--_fonts---line-height--large);
  color: var(--text--primary);
  padding-left: 1.375rem;
  position: relative;
  text-wrap: pretty;
}

.customer_summary-list li::before {
  content: "";
  position: absolute;
  left: .125rem; top: .58em; width: 6px; height: 6px;
  border-radius: 50%;
  background-color: var(--text--accent);
}

.customer_summary-list li + li { margin-top: 1.25rem; }

.customer_summary p:not(.customer_summary-label) {
  font-size: var(--_fonts---body--large);
  line-height: var(--_fonts---line-height--large);
  color: var(--text--primary);
  margin: 0;
  text-wrap: pretty;
}

.customer_summary p:not(.customer_summary-label) + p { margin-top: 1.25rem; }

/* --- signature element: the resolution timeline ------------------------------- */

.customer_timeline { margin: 4.75rem 0; }

.customer_timeline-caption {
  font-family: "YTF millie mono", monospace;
  font-size: var(--_fonts---body--xsmall);
  letter-spacing: var(--_fonts---letter-spacing--large);
  text-transform: uppercase;
  color: var(--base-colors--cold-mid-grey);
  text-align: center;
  margin: 0 0 2.75rem;
}

.customer_timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: auto auto auto;
  gap: 0 1rem;
}

.customer_timeline-track::before {
  content: "";
  grid-row: 2; grid-column: 1 / -1;
  align-self: center;
  height: 1px;
  margin: 0 21.429% 0 7.143%;
  background-color: transparent; /* no pre-drawn track: the line only exists where it has grown */
}

.customer_timeline-progress {
  grid-row: 2; grid-column: 1 / -1;
  align-self: center;
  height: 1px;
  margin: 0 21.429% 0 7.143%;
  background-color: var(--text--accent);
  transform: scaleX(var(--tlp, 0));
  transform-origin: left center;
  transition: background-color .6s ease;
}

.customer_timeline-step {
  position: relative;
  z-index: 1; /* keep icons above the transformed extension line */
  text-align: center;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / span 3;
  transition: opacity .45s ease, filter .45s ease;
}

.customer_timeline-step:nth-of-type(2) { grid-column: 1; }
.customer_timeline-step:nth-of-type(3) { grid-column: 2; }
.customer_timeline-step:nth-of-type(4) { grid-column: 3; }
.customer_timeline-step:nth-of-type(5) { grid-column: 4; }
.customer_timeline-step:nth-of-type(6) { grid-column: 5; }
.customer_timeline-step:nth-of-type(7) { grid-column: 6; }
.customer_timeline-step:nth-of-type(8) { grid-column: 7; }

.customer_timeline-step:not(.is-live) { opacity: 0; filter: grayscale(1); }

.customer_timeline-step:not(.is-live) .customer_timeline-icon,
.customer_timeline-step:not(.is-live) .customer_timeline-cluster { transform: scale(.85); }

.customer_timeline-step:not(.is-live) .customer_timeline-bug { opacity: 0; transform: scale(.5); }

.customer_timeline-bug:nth-child(2) { transition-delay: 60ms; }
.customer_timeline-bug:nth-child(3) { transition-delay: 120ms; }
.customer_timeline-bug:nth-child(4) { transition-delay: 180ms; }
.customer_timeline-bug:nth-child(5) { transition-delay: 240ms; }

.customer_timeline-icon {
  width: 44px; height: 44px;
  margin: 0;
  grid-row: 2;
  justify-self: center;
  align-self: center;
  display: block;
  position: relative;
  transition: transform .5s cubic-bezier(.2, .8, .25, 1);
}

.customer_timeline-icon img, .customer_timeline-icon > svg { width: 100%; height: 100%; display: block; }

.customer_timeline-icon.is-logo {
  border-radius: 50%;
  background-color: var(--backgrounds--secondary);
  border: 1px solid var(--borders--secondary);
  box-sizing: border-box;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.2, .8, .25, 1), border-color .6s ease;
}

.customer_timeline.is-resolved .customer_timeline-progress { background-color: var(--base-colors--deep-teal); }
.customer_timeline.is-resolved .customer_timeline-time { color: var(--base-colors--deep-teal); }
.customer_timeline.is-resolved .customer_timeline-bug {
  background-color: var(--base-colors--light-aqua);
  color: var(--base-colors--deep-teal);
}
.customer_timeline.is-resolved .customer_timeline-icon.is-logo { border-color: color-mix(in srgb, var(--base-colors--deep-teal) 40%, transparent); }

.customer_timeline-icon.is-logo img { object-fit: contain; box-sizing: border-box; }

.customer_timeline-icon.is-count {
  display: grid;
  place-items: center;
  font-family: "YTF millie mono", monospace;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text--secondary);
  font-variant-numeric: tabular-nums;
}

.customer_timeline-cluster {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  margin: 0;
  grid-row: 2;
  justify-self: center;
  align-self: center;
  position: relative;
  transition: transform .5s cubic-bezier(.2, .8, .25, 1);
}

.customer_timeline-bug {
  width: 26px; height: 26px;
  border-radius: 50%;
  background-color: var(--base-colors--peach);
  border: none;
  box-shadow: 0 0 0 2px var(--backgrounds--primary);
  display: grid;
  place-items: center;
  color: var(--text--accent);
  box-sizing: border-box;
  flex: none;
  transition: background-color .6s ease, border-color .6s ease, color .6s ease, opacity .3s ease, transform .45s cubic-bezier(.2, .8, .25, 1);
}

.customer_timeline-bug + .customer_timeline-bug { margin-left: -9px; }

.customer_timeline-bug svg { width: 13px; height: 13px; display: block; }

.customer_timeline-bug.is-more {
  font-family: "YTF millie mono", monospace;
  font-size: .62rem;
  font-variant-numeric: tabular-nums;
}

.customer_timeline-icon.is-avatar img {
  border-radius: 50%;
  object-fit: cover;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--base-colors--navy) 40%, transparent);
  background-color: var(--backgrounds--secondary);
}

.customer_timeline-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  grid-row: 3;
  margin: .8rem 0 0;
  font-family: "YTF millie mono", monospace;
  font-size: var(--_fonts---body--xsmall);
  color: var(--text--secondary);
  font-variant-numeric: tabular-nums;
  transition: color .6s ease;
}

.customer_timeline-label {
  grid-row: 1;
  align-self: end;
  font-size: var(--_fonts---body--small);
  line-height: var(--_fonts---line-height--large);
  font-weight: 500;
  color: var(--text--primary);
  margin: 0 0 1rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}

.customer_timeline-step.is-live .customer_timeline-label { opacity: 1; transform: none; }

.customer_timeline-foot {
  font-family: "YTF millie mono", monospace;
  font-size: var(--_fonts---body--xsmall);
  letter-spacing: var(--_fonts---letter-spacing--small);
  color: var(--base-colors--cold-mid-grey);
  text-align: center;
  margin: 2.75rem 0 0;
}

/* the memory node: the finding's line ends, the protection's doesn't */

.customer_timeline-extend {
  grid-row: 2; grid-column: 1 / -1;
  align-self: center;
  height: 1px;
  margin: 0 0 0 78.571%;
  background-image: linear-gradient(90deg, var(--base-colors--deep-teal), var(--customer-memory-ink) 62%, transparent 97%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.6s cubic-bezier(.25, .6, .2, 1);
}

.customer_timeline.is-open .customer_timeline-extend { transform: none; }

/* the node lights only once the line has reached it, like every node before it */
.customer_timeline-step.is-guardrail,
.customer_timeline-step.is-guardrail .customer_timeline-icon { transition-delay: .55s; }
.customer_timeline-step.is-guardrail .customer_timeline-label { transition-delay: .68s; }

.customer_timeline-icon.is-memory,
.customer_timeline.is-resolved .customer_timeline-icon.is-memory {
  background-color: var(--customer-memory-soft);
  border-color: var(--customer-memory-border);
  color: var(--customer-memory-ink);
  display: grid;
  place-items: center;
}

.customer_timeline-icon.is-memory svg { width: 22px; height: 22px; }

.customer_timeline-time.is-forever,
.customer_timeline.is-resolved .customer_timeline-time.is-forever { color: var(--customer-memory-ink); }

/* --- stat rows ------------------------------------------------------------------ */

.customer_stats { border-top: 1px solid var(--borders--primary); margin: 0 0 1rem; }

.customer_stat {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: 2rem;
  align-items: baseline;
  padding: 1.625rem 0;
  border-bottom: 1px solid var(--borders--primary);
}

.customer_stat-value {
  font-family: "YTF giong", Georgia, serif;
  font-size: var(--_fonts---headings--h5);
  line-height: var(--_fonts---line-height--small);
  color: var(--text--secondary);
  white-space: nowrap;
}

.customer_stat-arrow { color: var(--text--accent); }

.customer_stat-caption {
  font-size: var(--_fonts---body--small);
  line-height: var(--_fonts---line-height--large);
  color: var(--text--primary);
  margin: 0;
  text-wrap: pretty;
}

/* --- narrative -------------------------------------------------------------------- */

.customer_h2 {
  font-family: "YTF millie", sans-serif;
  font-size: var(--_fonts---headings--h5);
  line-height: var(--_fonts---line-height--xmedium);
  color: var(--text--secondary);
  font-weight: 500;
  margin: 4.25rem 0 1.5rem;
  text-wrap: pretty;
}

.customer_para {
  font-size: var(--_fonts---body--large);
  line-height: var(--_fonts---line-height--large);
  color: var(--text--primary);
  margin: 0 0 1.5rem;
  text-wrap: pretty;
}

.customer_quote {
  margin: 3rem 0;
  padding-left: 2rem;
  border-left: 2px solid var(--borders--secondary);
}

.customer_quote-text {
  font-family: "YTF giong", Georgia, serif;
  font-size: var(--_fonts---headings--h6);
  line-height: var(--_fonts---line-height--xmedium);
  color: var(--text--secondary);
  border-left: 0; padding: 0; margin: 0;
  text-wrap: pretty;
}

.customer_quote figcaption { text-align: left; }

.customer_quote-name { font-size: var(--_fonts---body--small); color: var(--text--secondary); margin: 1.25rem 0 0; }

.customer_quote-role {
  font-family: "YTF millie mono", monospace;
  font-size: var(--_fonts---body--xsmall);
  letter-spacing: var(--_fonts---letter-spacing--small);
  word-spacing: -0.3em;
  text-transform: uppercase;
  color: var(--text--primary);
  margin: .375rem 0 0;
}

/* --- numbered ---------------------------------------------------------------------- */

.customer_numbered {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0 1rem;
  margin: 2.75rem 0;
}

.customer_numbered-index {
  font-family: "YTF millie mono", monospace;
  font-size: var(--_fonts---body--regular);
  color: var(--base-colors--cold-mid-grey);
  padding-top: .25rem;
}

.customer_numbered-title {
  font-size: var(--_fonts---body--large);
  line-height: var(--_fonts---line-height--large);
  color: var(--text--secondary);
  font-weight: 500;
  margin: 0 0 .5rem;
}

.customer_numbered-text {
  font-size: var(--_fonts---body--large);
  line-height: var(--_fonts---line-height--large);
  color: var(--text--primary);
  margin: 0;
  text-wrap: pretty;
}

/* --- what changed ---------------------------------------------------------------------- */

.customer_changes { list-style: none; margin: 2.25rem 0 0; padding: 0; }

.customer_changes li {
  border-top: 1px solid var(--borders--primary);
  padding: 1.375rem 0;
  font-size: var(--_fonts---body--regular);
  line-height: var(--_fonts---line-height--large);
  color: var(--text--primary);
  text-wrap: pretty;
}

.customer_changes li:last-child { border-bottom: 1px solid var(--borders--primary); }

.customer_changes b { color: var(--text--secondary); font-weight: 500; }

/* --- closing quote ------------------------------------------------------------------------ */

.customer_closing { margin: 5.5rem auto 0; max-width: 46rem; text-align: center; }

.customer_closing-text {
  font-family: "YTF giong", Georgia, serif;
  font-size: var(--_sizes---content-heading--small);
  line-height: var(--_fonts---line-height--xmedium);
  color: var(--text--secondary);
  border-left: 0; padding: 0; margin: 0;
  text-wrap: pretty;
}

.customer_closing-name { font-size: var(--_fonts---body--regular); color: var(--text--secondary); margin: 2rem 0 0; }

.customer_closing-role {
  font-family: "YTF millie mono", monospace;
  font-size: var(--_fonts---body--xsmall);
  letter-spacing: var(--_fonts---letter-spacing--small);
  word-spacing: -0.3em;
  text-transform: uppercase;
  color: var(--text--primary);
  margin: .5rem 0 0;
}

/* --- CTA ---------------------------------------------------------------------------------- */

.customer_cta-section { border-top: 1px solid var(--borders--primary); }

.customer_cta { max-width: 40rem; margin: 0 auto; padding: 5.75rem 0 6.75rem; text-align: center; }

.customer_cta-title {
  font-family: "YTF giong", Georgia, serif;
  font-size: var(--_fonts---headings--h5);
  line-height: var(--_fonts---line-height--xmedium);
  font-weight: 400;
  color: var(--text--secondary);
  margin: 0;
  text-wrap: pretty;
}

.customer_cta-text {
  font-size: var(--_fonts---body--regular);
  line-height: var(--_fonts---line-height--large);
  color: var(--text--primary);
  max-width: 34rem;
  margin: 1.25rem auto 2.25rem;
  text-wrap: pretty;
}

/* --- responsive -------------------------------------------------------------------------------- */

@media screen and (max-width: 991px) {
  :root { --customer-nav-clear: 8rem; }

  .customer_feature { grid-template-columns: 9rem minmax(0, 1fr); gap: 2.5rem; margin-bottom: 3.5rem; }
  .customer_story-section { padding: 3.5rem 0 5rem; }

  .customer_layout { grid-template-columns: 1fr; gap: 0; }

  .customer_side {
    order: -1;
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 2rem;
    padding-bottom: 2.5rem;
    margin-bottom: 3.5rem;
    border-bottom: 1px solid var(--borders--primary);
  }

  .customer_side-logo { grid-column: 1 / -1; margin: 0; padding-bottom: 0; border-bottom: 0; }
  .customer_side-group + .customer_side-group { margin-top: 0; }
}

@media screen and (max-width: 767px) {
  .customer_stat { grid-template-columns: 1fr; gap: .375rem; padding: 1.25rem 0; }
  .customer_stat-value { white-space: normal; }

  .customer_timeline-track { grid-template-columns: 1fr; gap: 2.25rem; }
  .customer_timeline-track::before,
  .customer_timeline-progress { position: absolute; grid-area: auto; top: 22px; bottom: 22px; left: 21.5px; right: auto; margin: 0; width: 1px; height: auto; }
  .customer_timeline-progress { transform: scaleY(var(--tlp, 0)); transform-origin: top center; }
  .customer_timeline-step { display: block; text-align: left; padding: 0 0 0 3.75rem; min-height: 44px; grid-column: auto !important; grid-row: auto; }
  .customer_timeline-label { margin: .1rem 0 .3rem; }
  .customer_timeline-time { margin: .3rem 0 0; justify-content: flex-start; }
  .customer_timeline-icon { position: absolute; left: 0; top: 0; margin: 0; }
  .customer_timeline-cluster { position: absolute; left: 0; top: 0; margin: 0; justify-content: flex-start; }
  .customer_timeline-step:has(.customer_timeline-cluster) { padding-left: 8.5rem; }
  .customer_timeline-extend { position: absolute; grid-area: auto; left: 21.5px; right: auto; top: calc(100% - 22px); bottom: auto; width: 1px; height: 3.25rem; margin: 0; background-image: linear-gradient(180deg, var(--customer-memory-ink), transparent 96%); transform: scaleY(0); transform-origin: top center; }
  .customer_cta { padding: 4rem 0 4.5rem; }

  .customer_cover-img { aspect-ratio: 16 / 9; }
  .customer_h2 { margin-top: 3.5rem; }
  .customer_quote { margin-block: 2.5rem; padding-left: 1.25rem; }
  .customer_numbered { grid-template-columns: 1fr; gap: .5rem; }
}

@media screen and (max-width: 479px) {
  .customer_side { grid-template-columns: 1fr; }
  .customer_feature { grid-template-columns: 1fr; gap: 2rem; }
  .customer_feature-img { max-width: 8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .customer_timeline-step { transition: none !important; transition-delay: 0s !important; }
  .customer_timeline-label { transition: none !important; }
  .customer_timeline-icon, .customer_timeline-cluster, .customer_timeline-bug { transition: none !important; transform: none !important; }
  .customer_timeline-extend { transition: none !important; }
}
