/* /book/preview/ — first-party booking UI (FIS chrome, dark atmospheric)
   Public /book/ redirects to Calendly until BOOKING_PUBLIC is flipped. */

.book-wip-banner {
  margin: 0 0 1rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--book-line, rgba(241, 245, 249, 0.1));
  border-radius: 0.75rem;
  background: rgba(148, 163, 184, 0.08);
  color: var(--book-muted, rgba(241, 245, 249, 0.62));
  font-size: 0.8125rem;
  line-height: 1.45;
}

.book-wip-banner a {
  color: var(--book-fg, #f1f5f9);
  text-underline-offset: 0.15em;
}

.book-panel__steps li.is-active {
  color: var(--book-fg, #f1f5f9);
}

.book-panel__steps li.is-active span {
  background: var(--book-fg, #f1f5f9);
  color: var(--book-bg, #030712);
  border-color: transparent;
}

.book-native {
  padding: 1rem 1.1rem 1.35rem;
  min-height: 16rem;
}

.book-native-step[hidden] {
  display: none !important;
}

.book-native-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.55rem;
}

.book-native-grid--times {
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  margin-top: 0.85rem;
}

.book-native-chip {
  appearance: none;
  border: 1px solid var(--book-line, rgba(241, 245, 249, 0.1));
  border-radius: 0.75rem;
  background: rgba(241, 245, 249, 0.04);
  color: var(--book-fg, #f1f5f9);
  min-height: 2.75rem;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.book-native-chip:hover:not(:disabled) {
  background: rgba(241, 245, 249, 0.1);
  border-color: rgba(241, 245, 249, 0.22);
}

.book-native-chip:focus-visible {
  outline: 2px solid var(--book-accent, #94a3b8);
  outline-offset: 2px;
}

.book-native-chip:disabled,
.book-native-chip.is-muted {
  opacity: 0.4;
  cursor: not-allowed;
}

.book-native-empty {
  margin: 0.35rem 0 0;
  color: var(--book-muted, rgba(241, 245, 249, 0.62));
  font-size: 0.92rem;
  line-height: 1.5;
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

.book-native-empty p {
  margin: 0;
}

.book-native-empty__detail {
  font-size: 0.85rem;
  opacity: 0.9;
}

.book-native-link {
  appearance: none;
  border: 0;
  background: none;
  color: var(--book-fg, #f1f5f9);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  cursor: pointer;
  padding: 0;
  margin: 0 0 0.75rem;
}

.book-native-summary {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--book-fg, #f1f5f9);
}

.book-native-form {
  display: grid;
  gap: 0.85rem;
}

.book-native-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--book-muted, rgba(241, 245, 249, 0.62));
}

.book-native-field input,
.book-native-field textarea {
  appearance: none;
  width: 100%;
  border: 1px solid var(--book-line, rgba(241, 245, 249, 0.1));
  border-radius: 0.7rem;
  background: rgba(3, 7, 18, 0.45);
  color: var(--book-fg, #f1f5f9);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.7rem 0.85rem;
}

.book-native-field textarea {
  resize: vertical;
  min-height: 5rem;
}

.book-native-field input:focus-visible,
.book-native-field textarea:focus-visible {
  outline: 2px solid var(--book-accent, #94a3b8);
  outline-offset: 1px;
}

.book-native-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.book-native-error {
  margin: 0;
  color: #fca5a5;
  font-size: 0.875rem;
}

.book-native-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.book-native-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.book-native-btn:hover {
  opacity: 0.92;
}

.book-native-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.book-native-btn--primary {
  background: var(--book-fg, #f1f5f9);
  color: var(--book-bg, #030712);
}

.book-native-btn--ghost {
  background: transparent;
  color: var(--book-fg, #f1f5f9);
  border: 1px solid var(--book-line, rgba(241, 245, 249, 0.1));
}

.book-native-confirm {
  padding: 0.5rem 0 0.25rem;
}

.book-native-confirm__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--book-accent, #94a3b8);
}

.book-native-confirm__title {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.book-native-confirm__when {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.book-native-confirm__note {
  margin: 0 0 1.1rem;
  color: var(--book-muted, rgba(241, 245, 249, 0.62));
  font-size: 0.92rem;
  line-height: 1.5;
}

/* /book/ — legacy Cal.com chrome tokens (shared with preview) */

body.book-page {
  --book-bg: #030712;
  --book-bg-mid: #0a1220;
  --book-fg: #f1f5f9;
  --book-muted: rgba(241, 245, 249, 0.62);
  --book-line: rgba(241, 245, 249, 0.1);
  --book-accent: #94a3b8;
  --book-navy: #2c457d;
  background: var(--book-bg);
  color: var(--book-fg);
  min-height: 100vh;
  font-family: Poppins, system-ui, -apple-system, sans-serif;
}

html[data-theme="light"] body.book-page {
  --book-bg: #f4f6fa;
  --book-bg-mid: #eef1f7;
  --book-fg: #111729;
  --book-muted: rgba(17, 23, 41, 0.62);
  --book-line: rgba(17, 23, 41, 0.1);
  --book-accent: #2c457d;
}

.book-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5.5rem, 12vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.book-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 50% at 12% 18%, rgba(44, 69, 125, 0.22), transparent 58%),
    radial-gradient(ellipse 65% 45% at 92% 78%, rgba(34, 197, 94, 0.05), transparent 55%),
    linear-gradient(165deg, var(--book-bg) 0%, var(--book-bg-mid) 48%, var(--book-bg) 100%);
}

html[data-theme="light"] .book-main::before {
  background:
    radial-gradient(ellipse 75% 50% at 12% 18%, rgba(44, 69, 125, 0.1), transparent 58%),
    radial-gradient(ellipse 65% 45% at 92% 78%, rgba(21, 127, 60, 0.06), transparent 55%),
    linear-gradient(165deg, #f7f8fc 0%, #eef1f7 48%, #f4f6fa 100%);
}

.book-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 52rem);
  margin: 0 auto;
}

.book-intro {
  max-width: 36rem;
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
}

.book-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--book-accent);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: book-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.book-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--book-fg);
  opacity: 0;
  animation: book-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

.book-title em {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

.book-lead {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  line-height: 1.55;
  color: var(--book-muted);
  opacity: 0;
  animation: book-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  animation: book-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.24s forwards;
}

.book-meta li {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--book-muted);
}

.book-meta li::before {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--book-accent);
  vertical-align: 0.12em;
  opacity: 0.7;
}

.book-panel {
  position: relative;
  border: 1px solid var(--book-line);
  border-radius: 1.1rem;
  background: rgba(10, 18, 32, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  opacity: 0;
  animation: book-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

html[data-theme="light"] .book-panel {
  background: rgba(255, 255, 255, 0.78);
}

.book-panel__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--book-line);
}

.book-panel__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--book-muted);
}

.book-panel__steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.book-panel__steps li span {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1px solid var(--book-line);
  font-size: 0.62rem;
  color: var(--book-fg);
}

.book-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.75rem;
  color: var(--book-muted);
  text-align: right;
}

.book-cal-mount {
  min-height: min(72vh, 40rem);
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0.72;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.book-cal-mount.is-ready {
  opacity: 1;
}

.book-cal-mount.is-animated {
  animation: book-soft-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.book-cal-mount iframe {
  border: 0 !important;
}

.book-fallback {
  padding: 1.25rem 1.1rem 1.5rem;
  border-top: 1px solid var(--book-line);
}

.book-fallback[hidden] {
  display: none !important;
}

.book-fallback p {
  margin: 0 0 0.85rem;
  color: var(--book-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.book-fallback a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: var(--book-fg);
  color: var(--book-bg);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.book-fallback a:hover {
  opacity: 0.92;
}

.book-fallback a:focus-visible {
  outline: 2px solid var(--book-accent);
  outline-offset: 3px;
}

.book-aside {
  margin: 1.35rem 0 0;
  color: var(--book-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  opacity: 0;
  animation: book-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

.book-aside a {
  color: var(--book-fg);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.book-aside a:hover {
  opacity: 0.85;
}

@keyframes book-rise {
  from {
    opacity: 0;
    transform: translateY(0.55rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes book-soft-in {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .book-eyebrow,
  .book-title,
  .book-lead,
  .book-meta,
  .book-panel,
  .book-aside,
  .book-cal-mount.is-animated {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .book-cal-mount {
    transition: none;
  }

  .book-fallback a,
  .book-native-chip,
  .book-native-btn {
    transition: none !important;
  }

  .book-native-chip:hover:not(:disabled) {
    transform: none;
  }
}

@media (max-width: 640px) {
  .book-shell {
    width: min(100% - 1.25rem, 52rem);
  }

  .book-panel__chrome {
    flex-direction: column;
    align-items: flex-start;
  }

  .book-status {
    text-align: left;
  }

  .book-cal-mount {
    min-height: min(78vh, 36rem);
  }

  .book-panel__steps {
    gap: 0.35rem 0.55rem;
  }
}
