/*
 * Synthesia AI recruiting assistant: shared widget styles.
 * Used by the careers demo (site/index.html) and the candidate page (site/ask/).
 * Colours are Synthesia's own tokens from the Webflow CSS, with fallbacks so the
 * file also works on a page that does not load the Webflow stylesheet.
 */
:root {
  --ask-indigo: var(--indigo-500-main, #3e57da);
  --ask-indigo-dark: var(--indigo-600, #2c43b8);
  --ask-indigo-light: var(--indigo-400, #8098f9);
  --ask-indigo-tint: var(--indigo-200, #e3ebff);
  --ask-ink: var(--base-dark, #0d0f2c);
  --ask-text: var(--grey-700, #333b52);
  --ask-muted: var(--grey-600-main, #656c86);
  --ask-line: var(--grey-200, #e6eaf4);
  --ask-surface: var(--grey-100, #f2f4fd);
  --ask-shadow: 0 2px 16px 0 rgba(16, 24, 40, 0.08), 0 24px 48px -12px rgba(13, 15, 44, 0.24);
  --ask-radius: 16px;
  --ask-poster: url("https://interactive-avatars.synthesia-embeds.io/thumbnails/354921cd-04ea-45e5-b8f2-81adb32e2123/5fdd0f76-c1fd-46f9-bc16-7c74dd26bc83.jpg");
}

.ask-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- slot: the click-to-start placeholder and, once started, the iframe ---- */

.ask-slot {
  position: relative;
  width: 400px;
  max-width: 100%;
  margin-inline: auto;
}

.ask-start {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
  width: 100%;
  height: 620px;
  max-height: 100dvh;
  padding: 1.5rem;
  border: 0;
  border-radius: var(--ask-radius);
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: #fff;
  background: linear-gradient(160deg, var(--ask-indigo-light), var(--ask-indigo) 55%, var(--ask-ink));
  box-shadow: var(--ask-shadow);
  isolation: isolate;
}

.ask-start__poster {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ask-poster) center 30% / cover no-repeat;
  transition: transform 0.6s ease;
}

.ask-start__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 15, 44, 0) 45%, rgba(13, 15, 44, 0.78) 100%);
}

.ask-start:hover .ask-start__poster {
  transform: scale(1.03);
}

.ask-start__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--ask-indigo);
  color: #fff;
  font-size: 1.125rem;
  line-height: 1.625rem;
  font-weight: 500;
  letter-spacing: -0.009rem;
  box-shadow: 0 2px 10px 0 rgba(16, 24, 40, 0.08);
  transition: background-color 0.2s;
}

.ask-start:hover .ask-start__cta,
.ask-start:focus-visible .ask-start__cta {
  background: var(--ask-indigo-dark);
}

.ask-start:focus-visible {
  outline: 3px solid var(--ask-indigo-light);
  outline-offset: 3px;
}

.ask-start__note {
  font-size: 0.875rem;
  line-height: 1.375rem;
  color: rgba(255, 255, 255, 0.86);
}

.ask-stage,
.ask-end {
  display: none;
}

.ask-slot.is-live .ask-start {
  display: none;
}

.ask-slot.is-live .ask-stage {
  display: block;
}

.ask-slot .ask-stage .synthesia-ia-widget-frame {
  display: block;
  margin-inline: auto;
  border-radius: var(--ask-radius);
  box-shadow: var(--ask-shadow);
  background: #fff;
}

.ask-slot.is-live .ask-end {
  display: block;
  margin: 0.75rem auto 0;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--ask-line);
  border-radius: 0.625rem;
  background: #fff;
  color: var(--ask-ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.ask-slot.is-live .ask-end:hover {
  border-color: var(--ask-indigo-light);
}

/* The conversation moved to the floating panel: say so on the placeholder. */
.ask-slot.was-moved .ask-start__note::before {
  content: "Conversation moved to the panel in the corner. ";
}

/* ---- floating launcher ------------------------------------------------------ */

.ask-launcher {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border: 0;
  border-radius: 999rem;
  background: var(--ask-indigo);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--ask-shadow);
  transition: background-color 0.2s, transform 0.2s;
}

.ask-launcher:hover {
  background: var(--ask-indigo-dark);
  transform: translateY(-1px);
}

.ask-launcher:focus-visible {
  outline: 3px solid var(--ask-indigo-light);
  outline-offset: 3px;
}

.ask-launcher[aria-expanded="true"] {
  background: var(--ask-ink);
}

.ask-panel {
  position: fixed;
  right: 1.5rem;
  bottom: 5.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  width: 400px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 7rem);
  border-radius: var(--ask-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--ask-shadow);
}

.ask-panel[hidden] {
  display: none;
}

.ask-panel__bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-bottom: 1px solid var(--ask-line);
  background: #fff;
}

.ask-panel__title {
  font-size: 0.875rem;
  line-height: 1.375rem;
  font-weight: 500;
  color: var(--ask-ink);
}

.ask-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.625rem;
  background: transparent;
  color: var(--ask-ink);
  cursor: pointer;
}

.ask-panel__close:hover {
  background: var(--ask-surface);
}

.ask-panel__close:focus-visible {
  outline: 3px solid var(--ask-indigo-light);
  outline-offset: -3px;
}

.ask-panel .ask-stage {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  height: 620px;
}

/* The snippet fixes 400x620 inline; inside the panel let the frame fill it. */
.ask-panel .synthesia-ia-widget-frame {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
}

/* Full screen on phones. */
@media (max-width: 480px) {
  .ask-launcher {
    right: 1rem;
    bottom: 1rem;
  }

  .ask-panel {
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .ask-panel .ask-stage {
    height: auto;
  }

  html.ask-panel-open,
  html.ask-panel-open body {
    overflow: hidden;
  }

  html.ask-panel-open .ask-launcher {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ask-start__poster,
  .ask-launcher {
    transition: none;
  }
}

/* ---- careers demo: the inline section after the hero ------------------------ */

.ask-section {
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.ask-section__grid {
  display: grid;
  /* minmax(0, ...) or the 400px slot widens the track past a phone screen. */
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.ask-lede {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  letter-spacing: -0.0125rem;
  color: var(--ask-text);
}

.ask-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.ask-topics li {
  display: block;
  margin: 0;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--ask-indigo-tint);
  border-radius: 999rem;
  background: var(--indigo-100, #f5f8ff);
  color: var(--ask-indigo-dark);
  font-size: 0.875rem;
  line-height: 1.375rem;
  font-weight: 500;
}

/* Webflow's global list style draws a "•" in li::before. */
.ask-topics li::before {
  content: none;
  display: none;
}

.ask-disclosure {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.375rem;
  color: var(--ask-muted);
}

@media (min-width: 992px) {
  .ask-section {
    padding-top: 7.5rem;
    padding-bottom: 3rem;
  }

  .ask-section__grid {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 5rem;
  }
}
