/* Screen 8, your pace. Two columns: the copy on the hero's line at the left, the Insights
   card at the right margin, level with it. The card is drawn the app's way: white, the
   site's hairline, three lilac tiles, then When you dictate with its grid of days. */
.sp-board {
  max-width: 1440px; margin: 0 auto; padding: calc(150 * var(--u)) var(--m) calc(40 * var(--u)) calc(var(--m) + 72 * var(--u));
  display: grid; grid-template-columns: minmax(0, 1fr) calc(560 * var(--u)); column-gap: calc(64 * var(--u)); align-items: center;
}
.sp-mid { max-width: 15em; }
.sp-small { max-width: 24em; margin-top: 16px; }

.sp-card { padding: calc(28 * var(--u)); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); }
.sp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(10 * var(--u)); }
.sp-tile { display: flex; flex-direction: column; gap: 4px; padding: calc(16 * var(--u)) calc(16 * var(--u)) calc(14 * var(--u)); border-radius: calc(16 * var(--u)); background: var(--lilac); }
.sp-tile b { font-size: max(22px, calc(32 * var(--u))); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.sp-tile span { font-size: max(12px, calc(14 * var(--u))); line-height: 1.25; font-weight: 600; color: var(--plum); }

.sp-when { margin-top: calc(22 * var(--u)); }
.sp-when-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: max(13px, calc(15 * var(--u))); line-height: 1.3; font-weight: 700; color: var(--ink); }
.sp-streak { color: var(--plum); font-weight: 600; }
.sp-streak b { font-size: 1.35em; font-weight: 800; color: var(--ink); }
/* The grid of days, at its own size in design px; the dot rests on today in those units. */
.sp-days { --s: var(--u); position: relative; width: calc(var(--gw) * var(--s)); height: calc(var(--gh) * var(--s)); margin-top: calc(14 * var(--u)); }
.sp-grid { width: 100%; height: 100%; overflow: visible; }
.sp-cap { margin-top: calc(12 * var(--u)); font-size: max(12px, calc(13 * var(--u))); line-height: 1.3; color: var(--muted); }

@media (max-width: 1023.98px) {
  .sp-board { display: block; padding: 72px var(--m) 24px; }
  .sp-head h2 { max-width: 7em; }
  .sp-card { margin-top: 28px; padding: 16px; border-radius: 20px; }
  .sp-tiles { gap: 8px; }
  .sp-tile { padding: 12px 10px 10px; border-radius: 12px; }
  .sp-tile b { font-size: 19px; }
  .sp-tile span { font-size: 12px; }
  .sp-when { margin-top: 18px; }
  .sp-when-h { font-size: 13px; }
  /* The grid fills the card's width. */
  .sp-days { --s: calc((min(100vw, 1023px) - 2 * var(--m) - 34px) / var(--gw)); margin-top: 10px; }
  .sp-cap { margin-top: 10px; font-size: 12px; }
}

/* ---------------------------------------------------------------- motion
   js/pages/dictation/pace.js: the weeks fill in, oldest first, as the card comes into
   view; with no travelling dot, today's dot comes alive after them. */
.motion .sp.is-pre:not(.is-in) .sp-day { opacity: 0; }
.motion .sp.is-pre.is-in .sp-day { transition: opacity 0.3s ease calc(var(--w) * 70ms); }
.motion .sp.is-pre .station { opacity: 0; }
