/* 15 Get started: the pilot as eight weeks. Week 1 Launch, weeks 2 to 7 Game live, week 8 Report.
   When the page arrives a red fill runs through the three blocks in order and each one's label
   turns white as it fills (pilot.js adds .is-filled; not .is-in, which the site's reveal script sets on [data-reveal]). One quiet line names what we measure. */
.plt { --club: #d7192d; width: min(820px, 100%); margin: clamp(26px, 4vh, 40px) auto 0; }
.plt__weeks, .plt__row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.plt__weeks span { font-family: var(--mono); font-size: 12px; color: var(--slate); text-align: center; }
.plt__row { margin-top: 8px; }
.plt__b { position: relative; display: grid; place-items: center; height: 52px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; font-size: 15px; font-weight: 650; color: var(--ink); isolation: isolate; }
.plt__b--1 { grid-column: 1; } .plt__b--2 { grid-column: 2 / 8; } .plt__b--3 { grid-column: 8; }
.plt__b::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--club); transform-origin: left; transform: scaleX(var(--f, 1)); }
.plt__kpis { margin: 16px 0 0; font-size: 14px; color: var(--slate); }
.plt__kpis span { margin-right: 10px; font-family: var(--mono); font-size: 12px; }
.plt__b { color: #fff; }

/* The fill: 0.35 s for Launch, 2 s for the six live weeks, 0.35 s for Report, one after another. */
.js .plt .plt__b { color: var(--ink); transition: color 200ms ease var(--end); }
.js .plt .plt__b::before { --f: 0; transition: transform var(--dur) linear var(--at); }
.plt__b--1 { --at: 400ms; --dur: 350ms; --end: 650ms; }
.plt__b--2 { --at: 750ms; --dur: 2000ms; --end: 2500ms; }
.plt__b--3 { --at: 2750ms; --dur: 350ms; --end: 3000ms; }
.js .plt.is-filled .plt__b { color: #fff; }
.js .plt.is-filled .plt__b::before { --f: 1; }

@media (max-width: 600px) {
  .plt__weeks span:nth-child(n+3):nth-child(-n+6) { visibility: hidden; } /* W1, W2, W7, W8 */
  .plt__b { height: 44px; font-size: 13px; }
  /* The end blocks are too narrow for a word: a short mark, centred, stands in for it. */
  .plt__b--1, .plt__b--3 { font-size: 0; }
  .plt__b--1::after, .plt__b--3::after { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; }
  .plt__b--1::after { content: 'Go'; } .plt__b--3::after { content: '\2713'; }
}
@media (prefers-reduced-motion: reduce) {
  .js .plt .plt__b, .js .plt .plt__b::before { transition: none; }
}
