/* 4 · COACH — what a chatbot can't do alone. */

.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 88px 64px; margin-top: 72px; }
.feat {
  display: flex; flex-direction: column; gap: 28px;
  padding: 0;
}
.feat-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.feat-text { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.feat-text p { font-size: 19px; line-height: 1.42; color: var(--ink-2); letter-spacing: -0.012em; }
.feat > :last-child:not(.feat-text) { margin-top: auto; }

.lock-shot { width: 100%; max-width: 560px; justify-self: end; border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, 0.45); }

/* what you tried, and what it counted for */
.tried { padding: 0; }
.tried-head { display: flex; justify-content: space-between; padding: 14px 0 10px; font: 500 12px/1 var(--mono); letter-spacing: 0.02em; color: var(--muted); }
.tried li { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.tried li p { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.3; }
.tried b { font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.tried li span { font-size: 13.5px; color: var(--muted); }
.tried em { font-style: normal; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.tried em.up { color: var(--crimson); }

/* it writes first */
.thread { padding: 0; display: flex; flex-direction: column; gap: 6px; }
.t-time { align-self: center; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.t-time b { font-weight: 600; }
.thread > p:not(.t-time) { max-width: 82%; padding: 8px 14px; border-radius: 19px; font-size: 16px; line-height: 1.32; letter-spacing: -0.01em; }
.t-in { align-self: flex-start; background: #e9e9eb; }
.t-out { align-self: flex-end; background: var(--blue); color: #fff; margin: 6px 0; }
.thread > .t-card { display: grid; gap: 1px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 10px 14px; }
.t-card b { font-weight: 600; }
.t-card span { font-size: 14px; color: var(--muted); }

/* reveal: each card rises in, then its rows and messages arrive in order */
.coach-armed [data-r] { opacity: 0; transform: translateY(14px); }
.coach-armed .in [data-r], .coach-armed [data-r].in {
  opacity: 1; transform: none;
  transition: opacity 0.5s var(--out), transform 0.7s var(--out);
  transition-delay: calc(var(--d, 0) * 1ms);
}

@media (max-width: 900px) {
  .feats { grid-template-columns: 1fr; margin-top: 48px; }
  .feat-wide { grid-template-columns: 1fr; gap: 26px; }
  .lock-shot { justify-self: center; }
}
@media (max-width: 560px) {
  .feat { gap: 22px; }
  .feat-text p { font-size: 17px; }
  .lock-shot { border-radius: 16px; }

}
@media (prefers-reduced-motion: reduce) {
  .coach-armed [data-r] { opacity: 1; transform: none; }
}

/* a small aside in the empty margin right of the lede, in Patrik's voice; gone when the margin is too narrow */
.quip-wrap { position: relative; max-width: 600px; margin: 0 auto; }
.quip {
  position: absolute; left: calc(100% + 28px); top: 1.4em; width: 210px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 15px; line-height: 1.3; color: var(--muted); text-align: left;
  transform: rotate(-3deg); transform-origin: left top;
}
.quip svg { width: 34px; height: 30px; fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transform: scaleY(-1) translateX(-6px); }
@media (max-width: 1239px) { .quip { display: none; } }
