/* Demo / booking page — uses global DS classes (.s-hero, .section, .wrap,
   .eyebrow, .h-display, .lede, .h-section-sm, .bg-paper-2) + brand tokens.
   Only the demo-specific layout lives here. */

.demo-expect {
  padding-top: 64px;
  padding-bottom: 64px;
}

.demo-expect .h-section-sm {
  margin-top: 6px;
}

.demo-expect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 860px) {
  .demo-expect-grid {
    grid-template-columns: 1fr;
  }
}

.demo-expect-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.demo-expect-num {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}

.demo-expect-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.3;
}

.demo-expect-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.demo-booking {
  padding-top: 24px;
  padding-bottom: 96px;
}

.demo-booking .h-section-sm {
  margin-top: 6px;
}

/* Center the booking header so it sits coherently above the centered
   note, scheduler and fallback. */
.demo-booking .eyebrow,
.demo-booking .h-section-sm,
.demo-booking .lede {
  text-align: center;
}

.demo-embed-wrap {
  max-width: 1040px;
  margin: 36px auto 0;
}

.calendly-inline-widget {
  position: relative;
  min-width: 320px;
  height: 700px; /* initial only — data-resize auto-fits to content height */
}

/* Calendly injects its iframe into this container without clearing our
   loading message, so layer the iframe on top rather than below it. */
.calendly-inline-widget iframe {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .calendly-inline-widget { height: 1040px; }
}

.demo-loading {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  padding: 24px;
}

.demo-fallback {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 28px auto 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.demo-fallback-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-fallback-link:hover {
  color: var(--accent-hover);
}

.demo-lang-note {
  display: block;
  max-width: 1040px;
  margin: 24px auto 0;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2, var(--paper));
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

/* Calendly click-to-load gate — nothing from Calendly loads until clicked */
.demo-scheduler-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  min-height: 380px;
  padding: 48px 24px;
  border: 1px dashed var(--line, #e5e5e5);
  border-radius: 14px;
  background: var(--paper-2, #fafafa);
}
.demo-gate-note {
  margin: 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #525252);
}
.demo-gate-btn {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border: 0;
  border-radius: 8px;
  background: var(--accent, #B08D57);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.demo-gate-btn:hover { background: var(--accent-hover, #8F6F3E); }
