/*
 * /course/ (Bold Stack): the parts the plain template doesn't have: the hero beside the phone, the
 * enrol forms and the lessons. Loaded after css/bold-stack.css, css/guide-page.css and
 * css/plain-page.css. Class prefix cs-.
 */

.cs-teal { color: var(--bs-teal); }

/* The hero: the eyebrow, H1 and form, with the first email on a phone beside them on a computer. */
.cs-hero-copy { display: flex; flex-direction: column; gap: 18px; }
.cs-lead { max-width: 620px; font-size: clamp(18px, 1.6vw, 20px); font-weight: 400; line-height: 1.5; }

.cs-phone { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 36px 0 0; }
.cs-phone picture { display: block; width: 100%; max-width: 288px; }
.cs-phone img { display: block; width: 100%; height: auto; }
.cs-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
.cs-cap-pill {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--bs-teal-wash);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-box: trim-both cap alphabetic;
}

/* The enrol forms. js/main.js appends Turnstile's slot (.w-full) and, while a form posts, a spinner on its button. */
.cs-form { display: flex; flex-wrap: wrap; gap: 8px 10px; max-width: 560px; }
.cs-label { flex: 0 0 100%; font-size: 13px; font-weight: 700; }
.cs-input {
  flex: 1 1 240px;
  min-width: 0;
  height: var(--bs-height-cta);
  padding: 0 16px;
  background: var(--bs-slate);
  border: 1px solid var(--bs-outline);
  border-radius: var(--bs-radius-input);
  color: var(--bs-white);
  color-scheme: dark;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}
.cs-input::placeholder { color: var(--bs-white); opacity: 0.7; }
.cs-input:focus-visible { outline: 2px solid var(--bs-teal); outline-offset: 1px; border-color: var(--bs-teal); }
.cs-submit { flex: 0 0 auto; width: auto; padding: 0 28px; font-size: 16px; }
.cs-submit[aria-busy="true"] { opacity: 0.6; cursor: not-allowed; }
.cs-form > .w-full { flex: 0 0 100%; }
.course-spinner { display: inline-flex; }
.course-spinner svg { width: 20px; height: 20px; animation: cs-spin 1s linear infinite; }
.course-spinner circle { opacity: 0.25; }
.course-spinner path { opacity: 0.75; }
@keyframes cs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .course-spinner svg { animation-duration: 3s; }
}

/* The endpoint's honeypot: off screen, not hidden, so bots still fill it. */
.cs-hp { position: absolute; left: -9999px; }

.cs-note { font-size: 13px; font-weight: 500; line-height: 1.5; }
.cs-hero-copy .hp-trust { gap: 10px 18px; }

/* What js/main.js shows after a redirect back here: amber for an error, teal for the reconfirm notice.
   It toggles Tailwind's class names, because /bitcoin-basics/ shares the script. */
.cs-banner {
  max-width: 560px;
  padding: 12px 14px;
  background: rgba(214, 152, 91, 0.12);
  border: 1px solid rgba(214, 152, 91, 0.6);
  border-radius: var(--bs-radius-input);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.cs-banner.hidden { display: none; }
.cs-banner.bg-primary\/10 { background: var(--bs-teal-advice); border-color: var(--bs-teal); }

/* The lessons. */
.cs-lessons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; }
.pl-card.cs-lesson { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px 20px 20px; }
.cs-lesson > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cs-lesson h3, .cs-cards h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.cs-lesson p, .cs-cards p:not(.cs-amount) { font-size: 15px; font-weight: 500; line-height: 1.5; }
.cs-num {
  flex: 0 0 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bs-teal);
  border-radius: 10px;
  color: var(--bs-teal);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* The three benefits and the three steps. */
.cs-cards { margin: 4px 0 0; padding: 0; list-style: none; align-items: stretch; }
.cs-cards .pl-card { gap: 8px; }
.cs-amount { color: var(--bs-teal); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

.cs-final { margin-top: 56px; }
.cs-final h2 { font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; }

/* A computer: the phone sits beside the eyebrow, H1 and form. */
@media (min-width: 861px) {
  /* The third row takes whatever height the phone needs, so the head and the copy stay together. */
  .cs .gd-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto auto 1fr; column-gap: clamp(40px, 4.5vw, 64px); }
  .cs .gd-main > * { grid-column: 1 / -1; }
  .cs .gd-main > .gd-head, .cs .gd-main > .cs-hero-copy { grid-column: 1; }
  .cs .gd-main > .cs-phone { grid-column: 2; grid-row: 2 / span 2; align-self: start; margin-top: 36px; }
}

@media (max-width: 860px) {
  .cs-lessons { grid-template-columns: minmax(0, 1fr); }
  .cs-final { margin-top: 44px; }
}

/* A phone: the box and button stack, like the other pages' buttons. */
@media (max-width: 560px) {
  .cs-input { flex: 0 0 100%; }
  .cs-submit { flex: 0 0 100%; width: 100%; }
}
