/* ==========================================================================
   pricing.css – the pricing page's own pieces (helper 5, Oct 4, 2026)
   1. The term bar is the price switch (Graysen, thread 164fdf4a)
   2. "Which plan should I pick?" by kind of student (thread d9b0c594)
   ========================================================================== */

/* ---- 1. The term bar as three toggle buttons ----
   Keeps the bar's shape (each box as long as the time it covers) and makes each box a real button.
   The pressed one fills brand blue and carries a tick; the others are white with a blue edge. */
.term-pick__label { margin: 0 0 0.625rem; }
.term-pick { max-width: 52rem; margin-bottom: 0; grid-template-columns: 1fr 1.5fr 2fr; }   /* longer terms still get longer boxes; one month keeps room for its label */
.term-pick button {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: 0.875rem; line-height: 1.35;
  padding: 0.75rem 2.25rem 0.8rem 0.875rem; border-radius: 8px;
  background: #fff; color: var(--blue-900); border: 1.5px solid var(--blue-100);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.term-pick button b { display: block; font-family: var(--font-display); font-size: 1.0625rem; margin-bottom: 0.125rem; }
.term-pick button span { display: block; color: var(--ink-2); }
/* the round marker in the corner: empty when not chosen, a white tick when chosen */
.term-pick button::after {
  content: ""; position: absolute; top: 0.8rem; right: 0.75rem; width: 1rem; height: 1rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--blue-300); background: #fff;
}
.term-pick button:hover { background: var(--blue-50); border-color: var(--blue-300); }
.term-pick button[aria-pressed="true"] { background: var(--blue-500); border-color: var(--blue-500); color: #fff; box-shadow: 0 10px 22px -14px rgba(10, 40, 81, 0.6); }
.term-pick button[aria-pressed="true"] span { color: var(--blue-50); }
.term-pick button[aria-pressed="true"]::after {
  box-shadow: none;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.2 10.4l3.1 3.2 6.6-7.6' stroke='%2327669b' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/80% no-repeat;
}
.term-pick button:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 8px; }
@media (max-width: 700px) { .term-pick { grid-template-columns: minmax(0, 1fr); } }

/* ---- 2. Which plan should I pick? ---- */
.who-picks { grid-template-columns: 10rem minmax(0, 1fr); }
.who-picks dt { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.3; letter-spacing: -0.005em; text-transform: none; color: var(--ink); padding-top: 0.7rem; }
@media (max-width: 560px) {
  .who-picks { grid-template-columns: minmax(0, 1fr); }
  .who-picks dd { border-top: 0; padding-top: 0.125rem; }
}
