/* ==========================================================================
   Demo — "Talk to our experts." + booking box (HubSpot form embed)
   ========================================================================== */

.page-demo main { background: linear-gradient(90deg, #ffffff 0%, #f5f6ff 100%); }

/* ---------- Hero ---------- */
.demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 649px;
  column-gap: 55px;
  align-items: center; /* quote card and intro column (eyebrow → step 3) centre on each other */
  padding-top: 44px;
}
.demo-hero__title { margin-top: 26px; }
.demo-hero__lead { max-width: 600px; margin-top: 18px; }
.demo-hero__eyebrow2 { margin-top: 38px; }
.demo-hero__h2 { margin-top: 7px; font-size: 30px; line-height: 38px; font-weight: 600; letter-spacing: -0.038em; }

.steps { margin-top: 13px; }
.step { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 32px; max-width: 620px; }
.step + .step { margin-top: 34px; }
.step__num { transition: transform 0.6s var(--ease-spring), box-shadow 0.4s; }
.step:hover .step__num { transform: scale(1.08); box-shadow: 0 6px 16px -6px rgba(53, 90, 240, 0.6); }
.step__title { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--navy); }
.step__text { max-width: 552px; margin-top: 7px; font-size: 16px; line-height: 22px; color: var(--navy); }
.step--narrow .step__text { max-width: 500px; }

/* ---------- Testimonial card ---------- */
.quote {
  position: relative;
  aspect-ratio: 649 / 653;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 60px -40px rgba(53, 90, 240, 0.45);
}
.quote picture, .quote picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.quote picture img { object-fit: cover; }
.quote__person { z-index: 1; transform-origin: 70% 100%; }
.quote__person img { transition: transform 1.6s var(--ease-out); transform-origin: 75% 100%; }
.quote[data-reveal]:not(.is-in) .quote__person img { transform: scale(1.04); }
.quote__bg img { transition: transform 1.2s var(--ease-out); }
.quote:hover .quote__bg img { transform: scale(1.03); }
.quote__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 84.5px 0 0 28px;
  color: var(--navy);
}
.quote__logo { width: 169px; height: auto; }
.quote__text { max-width: 350px; margin-top: 22px; padding-left: 2px; }
.quote__text p { font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: 0; }
.quote__by { display: block; margin-top: 40px; padding-left: 2px; font-size: 20px; line-height: 25px; }
.quote__by strong { display: block; font-weight: 700; }
.quote__by span span { font-size: 0.6em; vertical-align: 0.2em; }

/* Quote text reveals after the card lands */
.quote__logo, .quote__text, .quote__by { transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); }
.quote[data-reveal]:not(.is-in) :is(.quote__logo, .quote__text, .quote__by) { opacity: 0; transform: translate3d(0, 14px, 0); }
.quote.is-in .quote__logo { transition-delay: 0.35s; }
.quote.is-in .quote__text { transition-delay: 0.45s; }
.quote.is-in .quote__by { transition-delay: 0.6s; }

/* ---------- Booking box (HubSpot form embed) ----------
   same rules style the local preview and the live form (HubSpot "raw HTML" mode, css: ""). */
.booking { padding-top: 124px; padding-bottom: 120px; }
.book-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(7, 26, 95, 0.03), 0 12px 32px -12px rgba(7, 26, 95, 0.14);
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.6s var(--ease-out);
}
.book-box:focus-within { box-shadow: 0 2px 4px rgba(7, 26, 95, 0.03), 0 18px 44px -14px rgba(53, 90, 240, 0.25); }
/* lytra gradient strip */
.book-box::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--mint) 0%, var(--cyan) 28%, var(--blue) 66%, var(--pink) 100%);
  pointer-events: none;
}
.book-box__intro {
  display: flex;
  flex-direction: column;
  padding: 52px 48px 44px;
  border-right: 1px solid #e9ecf8;
  background:
    radial-gradient(90% 55% at 0% 0%, rgba(113, 230, 255, 0.16), transparent 70%),
    radial-gradient(70% 45% at 0% 100%, rgba(191, 255, 182, 0.2), transparent 70%),
    radial-gradient(80% 55% at 100% 100%, rgba(213, 113, 229, 0.12), transparent 70%),
    #f8f9ff;
}
.book-box__title { font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -0.038em; color: var(--navy); }
.book-box__sub { max-width: 420px; margin-top: 14px; font-size: 16px; line-height: 24px; color: var(--navy); }
.book-box__points { margin: 28px 0 0; padding: 0; list-style: none; }
.book-box__points li { position: relative; padding-left: 34px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--navy); }
.book-box__points li + li { margin-top: 14px; }
.book-box__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23355af0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.book-box__main { display: flex; flex-direction: column; min-width: 0; padding: 32px 32px 24px; }
/* Demo host: Jan's (mirrored — the shirt logo is patched back to read correctly) cut-out stands on the
   panel's bottom-left edge, a soft brand-gradient disc behind him; the "Your demo with" card sits on
   the right, overlapping his arm slightly */
.book-box__intro { position: relative; }
.book-box__host { position: relative; flex: 1 1 auto; min-height: 380px; margin: 20px 0 -44px -48px; pointer-events: none; }
.book-box__host img {
  position: absolute; left: 30px; bottom: 0; /* 30px from the panel's left edge = card's gap on the right */
  width: auto; height: 100%; max-height: 490px; max-width: none;
  filter: drop-shadow(0 18px 30px rgba(7, 26, 95, 0.16));
  transform-origin: 50% 100%;
  transition: scale 1.2s var(--ease-out);
}
.book-box__disc {
  position: absolute; left: 54px; bottom: -80px;
  width: min(380px, 80%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(167, 155, 245, 0.5) 0%, rgba(98, 236, 252, 0.34) 58%, rgba(98, 236, 252, 0.12) 80%, transparent 100%);
}
.book-box__who {
  position: absolute; z-index: 1; right: -19px; bottom: 56px; /* 30px from the panel's right edge (incl. its 1px border) */
  display: grid; padding: 12px 16px 13px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e9ecf8; border-radius: 10px;
  box-shadow: 0 10px 26px -14px rgba(7, 26, 95, 0.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; line-height: 18px; color: var(--navy-60);
  white-space: nowrap;
}
.book-box__who strong { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--navy); }
/* beats the DE `text-wrap: pretty` rule on figcaptions (text-wrap resets the wrap mode) */
.book-box .book-box__intro .book-box__who { white-space: nowrap; text-wrap: nowrap; }
@media (hover: hover) { .book-box:hover .book-box__host img { scale: 1.02; } }
.hs-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid #eef0f7; font-size: 12px; line-height: 18px; color: var(--navy-60); }
.hs-note a { color: inherit; text-decoration: underline; text-decoration-color: rgba(81, 92, 138, 0.4); text-underline-offset: 2px; transition: color 0.3s, text-decoration-color 0.3s; }
.hs-note a:hover { color: var(--blue); text-decoration-color: currentColor; }

/* ---------- HubSpot Meetings embed ----------
   MeetingsEmbedCode.js turns .meetings-iframe-container into an iframe and sizes it via postMessage.
   Until it arrives we show a branded loader; if it's blocked, a fallback link. */
.meetings { position: relative; min-height: 640px; flex: 1; }
.meetings-iframe-container { position: relative; z-index: 1; min-height: 640px; }
.meetings-iframe-container iframe { display: block; width: 100% !important; min-height: 640px; border: 0; border-radius: 8px; opacity: 0; transition: opacity 0.6s var(--ease-out); }
.meetings.is-ready .meetings-iframe-container iframe { opacity: 1; }
.meetings__loading {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7f8ff, #f1f4fe);
  font-size: 14px; line-height: 20px; color: var(--navy-60);
  transition: opacity 0.5s var(--ease-out);
}
.meetings.is-ready .meetings__loading { opacity: 0; pointer-events: none; }
.meetings__spinner {
  width: 30px; height: 30px; border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(53, 90, 240, 0), var(--blue));
  -webkit-mask: radial-gradient(circle, transparent 10px, #000 11px); mask: radial-gradient(circle, transparent 10px, #000 11px);
  animation: meetings-spin 0.9s linear infinite;
}
@keyframes meetings-spin { to { transform: rotate(360deg); } }
.meetings__fallback { position: relative; z-index: 2; margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--navy); }
.meetings__fallback a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1199px) {
  .page-demo .container { --gutter: 48px; }
  .demo-hero { grid-template-columns: minmax(0, 1fr); padding-top: 39px; }
  .demo-hero__title { margin-top: 17px; }
  .demo-hero__lead { max-width: 640px; margin-top: 15px; font-size: 16px; line-height: 22px; }
  .demo-hero__eyebrow2 { margin-top: 39px; }
  .steps { margin-top: 14px; }
  .step { max-width: none; }
  .step__text, .step--narrow .step__text { max-width: none; }
  .step + .step { margin-top: 16px; }
  .step__text { margin-top: 6px; }
  .quote { width: 100%; max-width: 649px; aspect-ratio: 649 / 546; margin-top: 39px; }
  .quote__body { padding-top: 32.5px; }

  .booking { padding-top: 104px; padding-bottom: 64px; }
  .book-box { grid-template-columns: minmax(0, 1fr); }
  .book-box__intro { padding: 36px 32px 32px; border-right: 0; border-bottom: 1px solid #e9ecf8; }
  .book-box__title { font-size: 30px; line-height: 36px; }
  .book-box__sub { max-width: 560px; margin-top: 10px; }
  .book-box__points { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; }
  .book-box__points li + li { margin-top: 0; }
  /* stacked: the intro is a wide band — Jan stands at its right edge, the copy keeps clear of him */
  .book-box__intro { padding-right: 280px; }
  .book-box__host { position: absolute; right: 0; bottom: 0; width: 260px; height: calc(100% - 24px); min-height: 0; margin: 0; }
  .book-box__host img { left: auto; right: 16px; max-height: 300px; }
  .book-box__disc { left: auto; right: 24px; width: 230px; bottom: -60px; }
  .book-box__who { left: auto; right: 150px; bottom: 20px; padding: 9px 12px 10px; font-size: 12px; line-height: 16px; }
  .book-box__who strong { font-size: 14px; line-height: 19px; }
  .book-box__main { padding: 32px 32px 28px; }
}

/* ==========================================================================
   Phone
   ========================================================================== */
@media (max-width: 767px) {
  .page-demo .container { --gutter: 16px; }
  .demo-hero { padding-top: 40px; }
  .demo-hero__title { margin-top: 16px; font-size: 39px; line-height: 46px; }
  .demo-hero__lead { margin-top: 14px; }
  .demo-hero__eyebrow2 { margin-top: 16px; }
  .demo-hero__h2 { margin-top: 8px; font-size: 30px; line-height: 37px; }
  .steps { margin-top: 14px; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step__title { margin-top: 9px; font-size: 16px; line-height: 20px; }
  .step__text { margin-top: 4px; }
  .step + .step { margin-top: 16px; }
  .quote { max-width: none; aspect-ratio: 328 / 316; margin-top: 16px; }
  .quote__body { padding: 15.5px 0 0 15.5px; }
  .quote__logo { width: 96.5px; }
  .quote__text { max-width: 200px; margin-top: 5px; padding-left: 1px; }
  .quote__text p { font-size: 17px; line-height: 21px; }
  .quote__by { margin-top: 28px; padding-left: 1px; font-size: 14px; line-height: 18px; }

  .booking { padding-top: 64px; padding-bottom: 40px; }
  .book-box__intro { padding: 28px 20px 24px; }
  .book-box__title { font-size: 30px; line-height: 36px; }
  .book-box__sub { margin-top: 8px; font-size: 15px; line-height: 22px; }
  .book-box__points { display: block; margin-top: 18px; }
  .book-box__points li { font-size: 15px; line-height: 22px; }
  .book-box__points li + li { margin-top: 10px; }
  .book-box__points li::before { top: 0; }
  /* phone: Jan gets his own strip under the points, standing on the panel's bottom edge */
  .book-box__intro { padding-right: 20px; }
  .book-box__host { position: relative; right: auto; width: auto; height: 230px; margin: 16px 0 -24px -20px; }
  .book-box__host img { left: 14px; right: auto; max-height: 230px; }
  .book-box__disc { left: 18px; right: auto; width: 210px; bottom: -50px; }
  .book-box__who { left: auto; right: -6px; bottom: 28px; } /* both 14px from the panel edges */
  .book-box__host { order: 1; }
  .book-box__main { padding: 24px 20px 20px; }
  .book-box__main { padding: 16px 8px 16px; }
  .meetings, .meetings-iframe-container, .meetings-iframe-container iframe { min-height: 700px; }
}

/* ==========================================================================
   German (html[lang="de"]) — longer copy; EN rendering is untouched
   ========================================================================== */
/* Display/running copy here has no over-long compounds: wrap on whole words */
html[lang="de"] :is(.demo-hero__lead, .step__text, .quote__text p) { -webkit-hyphens: manual; hyphens: manual; }
/* The quote is ~10 % longer: step the type down one notch so the caption keeps its place in the card */
html[lang="de"] .quote__text p { font-size: 26px; line-height: 33px; }
@media (max-width: 767px) {
  html[lang="de"] .quote__text p { font-size: 15px; line-height: 19px; }
  html[lang="de"] .quote__by { margin-top: 26px; }
}
/* Booking box: short copy blocks wrap on whole words */

/* Consent step before the HubSpot calendar loads (demo.js). Until the
   visitor clicks "Load calendar", neither the loader nor the empty iframe
   area is shown. */
.meetings:not(.is-started), .meetings:not(.is-started) .meetings-iframe-container { min-height: 0; }
.meetings:not(.is-started) .meetings__loading, .meetings:not(.is-started) .meetings-iframe-container { display: none; }
.meetings.is-started .meetings__consent { display: none; }
.meetings__consent { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 540px; padding: 24px 0; font-size: 16px; line-height: 26px; color: var(--navy); }
.meetings__consent a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.meetings__consent-alt { font-size: 14px; line-height: 20px; }
