/* sotroai.com/book. Two columns: what the call is (left, on Forest), and the
   booking panel (right, a Card surface like the product's message cards).
   Month calendar with open days marked in Chartreuse, then times, then a
   short form, then the confirmation. Tokens come from sotro.css. */

.book { padding-top: 40px; padding-bottom: 96px; }
.book [hidden] { display: none; }
.book__layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }

/* What the call is */
.book__about { display: grid; gap: 16px; padding-top: 8px; }
.book__avatar { width: 56px; height: 56px; border-radius: 14px; }
.book__about .eyebrow { margin: 8px 0 0; }
.book__title { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.08; color: var(--chartreuse); text-wrap: balance; }
.book__lede { color: var(--sage); max-width: 44ch; }
.book__facts { list-style: none; display: grid; border-top: 1px solid var(--line-dark); }
.book__facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.book__fact-k { color: var(--sage); }
.book__agenda { display: grid; gap: 8px; padding-left: 20px; color: var(--on-forest); font-size: 15px; }
.book__agenda li::marker { color: var(--chartreuse); font-weight: 600; }
.book__watch { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: 12px; font-size: 14px; color: var(--on-forest); }
.book__watch-k { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chartreuse); }
.book__watch a { color: var(--chartreuse); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.book__alt { color: var(--sage); font-size: 14px; }
.book__alt a, .book__fallback a { color: var(--on-forest); text-decoration: underline; text-underline-offset: 3px; }

/* The panel */
.book__panel {
  background: var(--panel);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(10, 38, 22, 0.45);
  padding: 28px;
  display: grid;
  gap: 24px;
  min-width: 0;
}
.book__steps { list-style: none; display: flex; gap: 8px; font-size: 13px; color: var(--moss); counter-reset: step; flex-wrap: wrap; }
.book__steps li { display: flex; align-items: center; gap: 8px; }
.book__steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}
.book__steps li:not(:last-child) { padding-right: 8px; border-right: 1px solid var(--line); }
.book__steps li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.book__steps li[aria-current="step"]::before { background: var(--forest); border-color: var(--forest); color: var(--on-forest); }
.book__steps li.is-done::before { content: "✓"; background: var(--chartreuse); border-color: var(--chartreuse); color: var(--forest); }

.book__pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 200px); gap: 28px; }

/* Month */
.book__month { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.book__month-name { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 28px; }
.book__nav {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.book__nav:disabled { opacity: 0.35; cursor: default; }
.book__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.book__dow { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--moss); text-align: center; padding: 4px 0 8px; }
.book__date {
  position: relative;
  aspect-ratio: 1;
  max-width: 100%;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9a9b97;
  font: 500 15px/1 var(--sans);
  font-variant-numeric: tabular-nums;
}
.book__date.is-open { color: var(--forest); font-weight: 700; background: rgba(219, 231, 91, 0.35); cursor: pointer; }
.book__date.is-open:hover { background: rgba(219, 231, 91, 0.7); }
.book__date.is-today::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--forest); }
.book__date[aria-selected="true"] { background: var(--forest); color: var(--on-forest); }
.book__date:focus-visible, .book__nav:focus-visible, .book__time:focus-visible, .book__back:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

/* Times */
.book__slots { display: grid; gap: 12px; align-content: start; min-width: 0; }
.book__slots-day { font-size: 15px; font-weight: 600; }
.book__times { display: grid; gap: 8px; max-height: 336px; overflow-y: auto; padding-right: 2px; }
.book__time {
  min-height: 44px;
  border: 1px solid var(--forest);
  border-radius: 10px;
  background: transparent;
  color: var(--forest);
  font: 600 15px/20px var(--sans);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.book__time:hover { background: var(--forest); color: var(--on-forest); }
.book__note { color: var(--moss); font-size: 14px; }

/* Details */
.book__form { display: grid; gap: 14px; max-width: 520px; }
.book__back { justify-self: start; border: 0; background: none; color: var(--moss); font: 500 14px/20px var(--sans); cursor: pointer; padding: 0; }
.book__chosen { font-family: var(--display); font-size: 22px; line-height: 30px; color: var(--forest); }
.book__form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.book__form input, .book__form select, .book__form textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c4c4c2;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 400 16px/24px var(--sans);
}
.book__form input:focus, .book__form select:focus, .book__form textarea:focus { outline: 2px solid var(--forest); outline-offset: 1px; }
.book__hint {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
  font-size: 14px;
  line-height: 20px;
  color: var(--moss);
}
.book__hint a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.book__opt { color: var(--moss); font-weight: 400; }
.book__status { min-height: 20px; font-size: 14px; color: #b42318; }
.book__submit { justify-self: start; background: var(--forest); color: var(--on-forest); }

/* Booked */
.book__done { display: grid; gap: 12px; justify-items: start; }
.book__check { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--chartreuse); color: var(--forest); font-size: 24px; font-weight: 700; }
.book__done-title { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 36px; }
.book__done-note { color: var(--moss); }
.book__done-note b { color: var(--ink); }
.book__prep {
  display: grid;
  gap: 8px;
  justify-items: start;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mist);
  font-size: 14px;
  color: var(--moss);
}
.book__prep-title { font-weight: 600; color: var(--ink); }
.book__done .btn--chartreuse { background: var(--forest); color: var(--on-forest); }
.book__quiet { border: 1px solid var(--line); color: var(--ink); }
.book__fallback { color: var(--moss); }
.book__fallback a { color: var(--forest); }

@media (max-width: 900px) {
  .book__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 560px) {
  .book__panel { padding: 20px; }
  .book__agenda, .book__avatar { display: none; }
  .book__pick { grid-template-columns: minmax(0, 1fr); }
  .book__times { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .book__time { transition: none; } }
