/* Book-a-demo page (book-demo.html, assets/booking.js).
   The page uses the site chrome (nav, navy hero band, footer) from
   theme-kit.css and kit-pages.css; this file styles only the booking card.
   Theme-kit tokens only, on the ux_language scale: 10px containers,
   8px controls, no shadow on the static card, Noto Sans with 700 headings,
   orange never as text on a light surface. */

.bk-hero { padding-block: 64px 56px; }
.bk-section { padding-block: 40px 88px; }

.bk-card { background: var(--surface-canvas); color: var(--ink-primary); border: 1px solid var(--surface-rule);
  border-radius: var(--kit-radius); padding: 32px; }
@media (max-width: 760px) { .bk-card { padding: 20px 16px; } }

.bk-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px;
  margin-bottom: 24px; }
.bk-head h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 0; }
.bk-tz { color: var(--ink-tertiary); font-size: 14px; }
.bk-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
@media (max-width: 900px) { .bk-body { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Shared: every native control sets color and background explicitly. */
.bk-card button { font-family: inherit; line-height: inherit; }
.bk-card button:focus-visible, .bk-card a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Month picker */
.bk-month-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bk-month-head b { font-weight: 700; }
.bk-nav { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink-secondary); cursor: pointer; }
.bk-nav svg { width: 18px; height: 18px; }
.bk-nav:disabled { color: var(--ink-faint); background: transparent; cursor: default; }
.bk-nav:not(:disabled):hover { background: var(--surface-tint); color: var(--accent); }
.bk-grid { display: grid; grid-template-columns: repeat(7, 36px); justify-content: space-between; row-gap: 4px;
  text-align: center; font-size: 14px; }
.bk-grid .bk-dow { color: var(--ink-tertiary); font-size: 12px; font-weight: 600; line-height: 28px; }
.bk-day { width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--ink-faint); cursor: default; }
.bk-day.is-today { border-color: var(--accent-soft); }
.bk-day.has-slots { background: var(--accent-tint); color: var(--accent); font-weight: 600; cursor: pointer; }
.bk-day.has-slots:hover { border-color: var(--accent); }
.bk-day.is-selected, .bk-day.is-selected:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Week of days with time buttons */
.bk-week { display: grid; grid-template-columns: 32px repeat(7, minmax(0, 1fr)) 32px; gap: 8px; align-items: start; }
.bk-col { text-align: center; min-width: 0; }
.bk-col-head { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-tertiary); text-transform: uppercase; }
.bk-col-date { font-size: 22px; line-height: 1.3; margin: 2px 0 12px; color: var(--ink-primary); }
.bk-col.is-selected .bk-col-date { color: var(--accent); font-weight: 700; }
.bk-slot { display: block; width: 100%; min-height: 36px; margin: 0 0 8px; padding: 6px 4px; border: 1px solid var(--surface-rule);
  border-radius: 8px; background: var(--surface-canvas); color: var(--accent); font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: background-color 120ms ease, border-color 120ms ease; }
.bk-slot:hover, .bk-slot:focus-visible { border-color: var(--accent); background: var(--accent-tint); }
.bk-none { color: var(--ink-faint); font-size: 13px; padding-top: 8px; }
@media (max-width: 760px) {
  /* One day per row: date on the left, its times wrapping on the right. */
  .bk-week { grid-template-columns: minmax(0, 1fr) 32px 32px; gap: 0 4px; }
  .bk-week > .bk-nav { grid-row: 1; margin-bottom: 4px; }
  .bk-week > .bk-nav:first-child { grid-column: 2; }
  .bk-week > .bk-nav:last-child { grid-column: 3; }
  .bk-week > .bk-col { grid-column: 1 / -1; }
  .bk-col { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; text-align: left;
    padding: 12px 0; border-top: 1px solid var(--surface-divider); }
  .bk-col-head { grid-column: 1; }
  .bk-col-date { grid-column: 1; margin: 0; }
  .bk-col-times { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: 8px; }
  .bk-col-times .bk-slot { width: auto; margin: 0; padding: 6px 12px; }
  .bk-none { padding-top: 6px; }
}

/* Details form */
.bk-form { max-width: 560px; }
.bk-form .bk-picked { font-weight: 700; margin: 0 0 20px; }
.bk-field { margin-bottom: 16px; }
.bk-field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-secondary); margin-bottom: 6px; }
.bk-field input, .bk-field textarea { width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 12px; font: inherit;
  font-size: 15px; color: var(--ink-primary); background: var(--surface-canvas); border: 1px solid var(--ink-faint);
  border-radius: 8px; }
.bk-field textarea { resize: vertical; }
.bk-field input:focus, .bk-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.bk-optional { font-weight: 400; color: var(--ink-tertiary); }
.bk-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bk-google { margin: 0 0 16px; min-height: 44px; }
.bk-google-note { font-size: 14px; color: var(--ink-tertiary); margin: 0 0 20px; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.bk-actions .ds-btn-primary { border: 0; cursor: pointer; }
.bk-actions .ds-btn-primary:disabled { opacity: 0.6; cursor: default; }
.bk-link { padding: 0; border: 0; background: transparent; color: var(--accent); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-soft); }
.bk-link:hover { text-decoration-color: var(--accent); }
.bk-error { color: #b91c1c; margin: 12px 0 0; }
.bk-error:empty { display: none; }
.bk-head + .bk-error { margin: 0 0 16px; }

/* Empty, done and failed states: Lucide icon, short text, one action. */
.bk-state { display: flex; gap: 16px; align-items: flex-start; }
.bk-state-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 8px; background: var(--accent-tint); color: var(--accent); }
.bk-state-icon svg { width: 20px; height: 20px; }
.bk-state h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; margin: 4px 0 8px; }
.bk-state p { color: var(--ink-secondary); margin: 0 0 6px; }
.bk-state .bk-state-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.bk-state .ds-btn-secondary { color: var(--accent); background: var(--surface-canvas); border-color: var(--accent); }

/* Loading skeleton (ux_language rule 10), shaped like the calendar. */
.bk-skel-line, .bk-skel-block { display: block; border-radius: 8px; background: var(--surface-tint);
  background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  background-size: 200% 100%; background-repeat: no-repeat; animation: bk-shimmer 1400ms ease-in-out infinite; }
.bk-skel-title { width: 240px; height: 24px; }
.bk-skel-tz { width: 200px; height: 16px; }
.bk-skel-month { height: 248px; border-radius: 10px; }
.bk-skel-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.bk-skel-week .bk-skel-block { height: 220px; }
@media (max-width: 760px) {
  .bk-skel-week { grid-template-columns: minmax(0, 1fr); }
  .bk-skel-week .bk-skel-block { height: 56px; }
  .bk-skel-tz { width: 160px; }
}
@keyframes bk-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .bk-skel-line, .bk-skel-block { animation: none; } }
.bk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- The "Book a Demo" dialog (assets/booking-dialog.js) ----------
   ux_language/components/dialog.md: the native <dialog>, --t-scrim behind
   it, a card panel with one hairline, 14px corners (--radius-lg) and the
   raised shadow, min(520px, 100vw - 32px) wide, its body scrolling. */
.bk-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 1px solid var(--surface-rule); border-radius: 14px;
  background: var(--surface-canvas); color: var(--ink-primary); box-shadow: 0 24px 60px rgba(19, 27, 63, 0.18);
  overflow: hidden; font-family: var(--font-sans); }
.bk-dialog[open] { display: flex; flex-direction: column; }
.bk-dialog::backdrop { background: rgba(15, 23, 42, 0.35); }
html.bk-dialog-open { overflow: hidden; }
.bk-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 24px 24px 16px; border-bottom: 1px solid var(--surface-divider); }
.bk-dialog-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 0; color: var(--ink-primary); }
.bk-dialog-desc { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-secondary); }
.bk-dialog-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  margin: -6px -8px 0 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink-secondary); cursor: pointer; }
.bk-dialog-close svg { width: 20px; height: 20px; }
.bk-dialog-close:hover { background: var(--surface-tint); color: var(--accent); }
.bk-dialog-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bk-dialog-body { padding: 20px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 520px) {
  .bk-dialog-head { padding: 20px 16px 12px; }
  .bk-dialog-body { padding: 16px; }
}
.bk-dialog .bk-card button, .bk-flow button { font-family: inherit; line-height: inherit; }
.bk-flow button:focus-visible, .bk-flow a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bk-flow .bk-head { margin-bottom: 16px; }
.bk-flow .bk-head h2 { font-size: 1rem; }
.bk-flow .bk-tz { font-size: 13px; }

/* The compact layout: the month, then the picked day's times beside it
   (below it on a phone). */
.bk-body--compact { grid-template-columns: 252px minmax(0, 1fr); gap: 24px; }
@media (max-width: 560px) { .bk-body--compact { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.bk-dayview-title { font-size: 15px; font-weight: 700; margin: 4px 0 12px; color: var(--ink-primary); }
.bk-dayview-times { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.bk-dayview-times .bk-slot { margin: 0; }
@media (max-width: 560px) { .bk-dayview-times { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bk-dayview .bk-none { padding-top: 0; margin: 0; }
.bk-skel-day { display: grid; gap: 8px; align-content: start; }
.bk-skel-day .bk-skel-block { height: 36px; }
.bk-flow .bk-form { max-width: none; }
.bk-flow .bk-state h2 { font-size: 1.125rem; }
