/* Novo AI Academy V6.4: make "Book a Free Demo" easy to find on every page. Uses the site's own colour, type and spacing tokens. */

/* ---------- header button (every page) ---------- */
.site-header .hdr-demo { gap: 8px; box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 30%, transparent), 0 6px 22px -10px color-mix(in oklab, var(--primary) 70%, transparent); }
.site-header .hdr-demo svg { width: 16px; height: 16px; }
.site-header .hdr-demo:hover { box-shadow: var(--glow); }
.site-header .hdr-demo[aria-current="page"] { outline: 2px solid color-mix(in oklab, var(--primary) 55%, transparent); outline-offset: 2px; }
/* below 560px the always-visible bottom bar carries the button instead, so the header stays uncluttered */
@media (width < 560px) { .site-header .hdr-demo { display: none; } }
/* 1400px and wider: the full menu is shown, and there is room for one header button only, so it is Book a Free Demo.
   (Program Finder stays in the home-page hero, its home-page section, the footer, and the header menu below 1400px.) */
@media (width >= 1400px) { .site-header .actions .btn:not(.hdr-demo) { display: none; } }

/* ---------- mobile menu: booking button is the first thing in the menu ---------- */
.nav-mobile .mobile-demo { margin: var(--s-2) 0 var(--s-3); list-style: none; }
.nav-mobile .mobile-demo .btn { min-height: 52px; font-size: var(--fs-base); }
.nav-mobile .mobile-demo small { display: block; text-align: center; margin-top: 6px; font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- mobile bottom bar: always visible on phones and tablets ---------- */
@media (width <= 899px) {
  .mobile-cta[data-astro-cid-xomy4gnb] { transform: none; }
  .mobile-cta ~ .wa-wrap { bottom: 78px; }
  .mobile-cta .btn--primary svg { width: 16px; height: 16px; }
}
.mobile-cta .mc-demo { flex: 1.35 !important; }

/* ---------- homepage ---------- */
.hero-demo-note { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: var(--s-3) 0 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--text-muted); }
.hero-demo-note li { display: inline-flex; align-items: center; gap: 6px; }
.hero-demo-note svg { width: 15px; height: 15px; color: var(--primary-fg); flex: none; }
.btn--demo { min-height: 52px; padding-inline: var(--s-6); font-size: var(--fs-base); }

.demo-strip { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; margin-top: var(--s-6); padding: var(--s-5);
  border-radius: var(--r-lg); border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent);
  background: linear-gradient(100deg, color-mix(in oklab, var(--primary) 12%, var(--surface)), var(--surface) 70%); }
.demo-strip strong { display: block; font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.2; }
.demo-strip span { color: var(--text-muted); font-size: var(--fs-sm); }
@media (max-width: 560px) { .demo-strip .btn { width: 100%; } }

.demo-steps { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: var(--s-5) 0 0; padding: 0; list-style: none; counter-reset: ds; }
.demo-steps li { counter-increment: ds; display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; align-items: start; padding: var(--s-4); border-radius: var(--r-md); background: color-mix(in oklab, var(--bg) 55%, transparent); border: 1px solid var(--border); }
.demo-steps li::before { content: counter(ds); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 650 var(--fs-md) var(--font-display); background: var(--primary); color: var(--primary-ink); }
.demo-steps b { font-family: var(--font-display); font-size: var(--fs-md); line-height: 1.25; }
.demo-steps span { font-size: var(--fs-sm); color: var(--text-muted); }
.bk-cta .btn-row { align-self: center; }

/* ---------- booking page: calendar on the first screen ---------- */
.bk-hero.page-hero { padding-block: clamp(1.25rem, .8rem + 2vw, 2.25rem) clamp(1rem, .8rem + 1vw, 1.5rem); }
.bk-hero.page-hero h1 { font-size: var(--fs-xl); max-width: none; margin-block: var(--s-2) var(--s-2); }
.bk-hero .lede { font-size: var(--fs-base); max-width: 78ch; }
.bk-hero .bk-facts { margin-top: var(--s-3); }
.bk-hero .bk-facts li { min-height: 32px; font-size: var(--fs-xs); }
@media (width < 640px) {
  .bk-hero .breadcrumbs { display: none; }
  .bk-hero .eyebrow { display: none; }
  .bk-hero .lede { font-size: var(--fs-sm); }
  .bk-hero .bk-facts li:nth-child(n+4) { display: none; }
}
.bk-section.section { padding-top: var(--s-4); }

/* time-zone bar above the calendar */
.bk-tzbar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4);
  border-radius: var(--r-md); background: color-mix(in oklab, var(--accent) 10%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 32%, transparent); }
.bk-tzbar > svg { width: 22px; height: 22px; color: var(--accent); grid-row: span 2; }
.bk-tzbar-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; min-width: 0; }
.bk-tzbar label { font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.bk-tzbar .select { width: auto; min-width: 0; flex: 1 1 240px; max-width: 420px; min-height: 44px; padding-block: 6px; font-size: var(--fs-sm); }
.bk-tzbar p { margin: 0; font-size: var(--fs-xs); color: var(--text-muted); grid-column: 2; }

/* the selection bar that appears under the times */
.bk-pick { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; margin-top: var(--s-4); padding: var(--s-4);
  border-radius: var(--r-md); border: 1px solid var(--primary-fg); background: color-mix(in oklab, var(--primary) 10%, var(--bg)); }
.bk-pick span { display: block; font: 500 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.bk-pick strong { display: block; font-family: var(--font-display); font-size: var(--fs-md); }
.bk-pick small { display: block; color: var(--text-muted); font-size: var(--fs-xs); }
.bk-pick .btn { min-height: 48px; }
@media (max-width: 560px) { .bk-pick .btn { width: 100%; } }
.bk-pick--hint { border-style: dashed; border-color: var(--border-strong); background: transparent; color: var(--text-muted); font-size: var(--fs-sm); }

/* details step */
.bk-review { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.bk-review > div { display: grid; gap: 2px; }
.bk-review .btn { min-height: 40px; }
.bk-joining { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--r-md); background: var(--surface-2); font-size: var(--fs-sm); }
.bk-joining h3 { font-size: var(--fs-md); margin: 0 0 var(--s-2); }
.bk-joining ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; color: var(--text-muted); }
.bk-confirm-btn { min-height: 52px !important; padding-inline: var(--s-6) !important; font-size: var(--fs-base) !important; }

/* mobile: summary card goes under the tool so the calendar is first */
@media (max-width: 979px) { .bk-side { order: 0 !important; } .bk-side .bk-sum > div:not(.keep) { display: block; } .bk-side .bk-sum { grid-template-columns: 1fr 1fr; } }

/* compact top of the booking tool */
.bk .bk-steps { margin-bottom: var(--s-3); }
.bk .bk-main > div > .bk-h, .bk [data-panel] > .bk-h { font-size: var(--fs-md); margin-bottom: var(--s-3); }
.bk .bk-tzbar { padding: var(--s-2) var(--s-3); margin-bottom: var(--s-3); }
.bk .bk-tzbar > svg { grid-row: auto; }
.bk .bk-preview--end { margin: var(--s-5) 0 0; }
@media (width < 640px) {
  .bk-hero.page-hero { padding-block: var(--s-4) var(--s-3); }
  .bk-hero.page-hero h1 { font-size: var(--fs-lg); }
  .bk .bk-main { padding: var(--s-3); }
  .bk .bk-tzbar { grid-template-columns: 1fr; }
  .bk .bk-tzbar > svg { display: none; }
  .bk .bk-tzbar p { grid-column: 1; }
  .bk .bk-tzbar .select { flex-basis: 100%; max-width: none; }
  .bk .bk-cal { padding: var(--s-3) var(--s-2); }
}

/* first visit on a phone: keep the booking bar visible under the cookie banner */
@media (width <= 899px) {
  .mobile-cta ~ .cookie:not([hidden]) { bottom: calc(72px + env(safe-area-inset-bottom)) !important; }
}
/* booking page on phones: the heading names the step, so the stepper shows bars only */
@media (width < 560px) {
  .bk .bk-steps { padding-bottom: 0; }
  .bk .bk-steps li span, .bk .bk-steps li[data-state="now"] span { display: none !important; }
}
.mobile-cta[data-astro-cid-xomy4gnb] .btn { white-space: nowrap; padding-inline: 12px; }
.mobile-cta .mc-demo { flex: 1.2 !important; }
@media (max-width: 400px) { .mobile-cta[data-astro-cid-xomy4gnb] .btn { font-size: .82rem; padding-inline: 8px; gap: 6px; } }
