/* Growth Accelerator: results page overrides. Loaded only on /results, after site.css. */

/* Balance the two columns of each case: center them on each other instead of stretching to match height */
.case { align-items: center; scroll-margin-top: calc(var(--nav-h) + 20px); }

/* Name + head photo */
.case__who { display: flex; align-items: center; gap: 12px; }
.case__who .avatar { width: 48px; height: 48px; }
.case__who h3 { margin: 0; }

/* Setback note: a calm, labeled callout */
.note { background: var(--grey); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0; padding: 14px 16px 15px; }
.note::before { content: "What went wrong"; display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--mid); margin-bottom: 6px; }

/* Juno's note is a quote, not a setback: no "what went wrong" label, different tone */
.note--quote { background: var(--blue-50); border-left-color: var(--blue-soft); font-size: 16px; font-weight: 600; color: var(--ink); }
.note--quote::before { content: none; margin: 0; }

/* Mid-page CTA after the third case */
.mid-cta { border-top: 1px solid var(--line); padding: clamp(40px, 5.5vw, 56px) 0; }
.mid-cta .cta-row { margin-top: 0; }

/* Understated closing line after the last case */
.more-students { text-align: center; margin: 0; padding-top: clamp(40px, 5.5vw, 56px); border-top: 1px solid var(--line); color: var(--mid); font-size: 15px; }

/* Progress chart per student: a rising line through each result, with the time since starting underneath */
.case__media { align-self: center; }
.prog { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 16px; box-shadow: 0 22px 48px -34px rgba(16, 24, 40, .4); }
.prog__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.prog__head > span:first-child { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--mid); white-space: nowrap; }
.prog__total { font-size: 12.5px; color: var(--light); text-align: right; }
.prog__total b { font-size: 15px; font-weight: 700; color: var(--ink); margin-right: 3px; letter-spacing: -.01em; }
.prog__grid { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); grid-template-rows: auto 112px auto; column-gap: 10px; }
.prog__col { display: contents; }
.prog__val { grid-row: 1; align-self: end; padding-bottom: 12px; text-align: center; }
.prog__val b { display: block; font-size: clamp(15px, 1.5vw, 18px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prog__val span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.35; color: var(--mid); }
.prog__col--start .prog__val b { color: var(--light); font-weight: 600; }
.prog__col--last .prog__val b { color: var(--blue-ink); }
.prog__slot { grid-row: 2; position: relative; }
.prog__slot::before { content: ""; position: absolute; left: 50%; top: 0; bottom: calc(var(--y) * 100%); border-left: 1px dashed var(--line-2); }
.prog__dot { position: absolute; left: 50%; bottom: calc(var(--y) * 100%); width: 11px; height: 11px; margin-left: -5.5px; margin-bottom: -5.5px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); z-index: 1; transform: scale(0); transition: transform .45s var(--ease) calc(.25s + var(--i) * .22s); }
.prog__col--start .prog__dot { border-color: var(--line-2); }
.prog__col--last .prog__dot { width: 13px; height: 13px; margin-left: -6.5px; margin-bottom: -6.5px; background: var(--blue); border-color: #fff; box-shadow: 0 0 0 4px rgba(1, 158, 254, .18), 0 0 16px rgba(1, 158, 254, .55); }
.prog__when { grid-row: 3; justify-self: center; margin-top: 12px; font-size: 11px; font-weight: 600; color: var(--mid); background: var(--grey); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; text-align: center; line-height: 1.3; max-width: 100%; }
.prog__col--last .prog__when { color: var(--blue-ink); background: var(--blue-50); border-color: var(--blue-100); }
.prog__line { grid-row: 2; grid-column: 1 / -1; width: 100%; height: 100%; overflow: visible; clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease) .15s; }
.prog__path { fill: none; stroke: var(--blue); stroke-width: 2.25; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.prog .vid-tag { justify-content: center; margin-top: 8px; padding-top: 0; border-top: 0; font-size: 9.5px; flex: none; }
.prog.in .prog__line { clip-path: inset(0 0 0 0); }
.prog.in .prog__dot { transform: scale(1); }
.prog__val, .prog__when { opacity: 0; transform: translateY(4px); transition: opacity .5s var(--ease) calc(.3s + var(--i) * .22s), transform .5s var(--ease) calc(.3s + var(--i) * .22s); }
.prog.in .prog__val, .prog.in .prog__when { opacity: 1; transform: none; }

/* Phones: the chart turns into a vertical timeline */
@media (max-width: 560px) {
  .prog { padding: 18px 16px 6px; }
  .prog__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .prog__total { text-align: left; }
  .prog__grid { display: block; }
  .prog__line { display: none; }
  .prog__col { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; position: relative; padding-bottom: 18px; }
  .prog__col:not(.prog__col--last)::before { content: ""; position: absolute; left: 10.5px; top: 16px; bottom: 0; width: 1px; background: linear-gradient(var(--blue), var(--blue-100)); }
  .prog__col > * { grid-column: auto !important; }
  .prog__slot { grid-column: 1 !important; grid-row: 1 / span 2; height: 22px; }
  .prog__slot::before { display: none; }
  .prog__dot { bottom: auto; top: 6px; }
  .prog__when { grid-column: 2 !important; grid-row: 1; justify-self: start; margin-top: 0; }
  .prog__val { grid-column: 2 !important; grid-row: 2; text-align: left; padding: 6px 0 0; }
  .prog__val b { font-size: 20px; }
  .prog__val span { font-size: 13px; }
  .prog .vid-tag { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .prog__line { clip-path: none; transition: none; }
  .prog__dot, .prog__val, .prog__when { transform: none; opacity: 1; transition: none; }
}
