.header-promo-dialog .welcome-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  cursor: pointer;
  margin: 12px 0;
  color: #e2d9f5;
  font-size: .875rem;
  line-height: 1.4;
  text-align: start;
}
.header-promo-dialog .welcome-consent input {
  width: 17px;
  height: 17px;
  min-height: 0;
  box-shadow: none;
  padding: 0;
  margin: 2px 0 0;
  accent-color: #a78bfa;
}

[data-timed-promo-expired] [data-welcome-discount] { display: none; }
#header-promo-dialog .welcome-guest-link {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 0;
  color: #e4cbff;
  font-size: 14px;
  text-underline-offset: 3px;
}
#header-promo-dialog .welcome-guest-link:hover { color: #fffaf8; }
#header-promo-dialog .welcome-guest-link:focus-visible { outline: 2px solid #dfc9ff; outline-offset: 3px; }

/* Only a verified active welcome visit includes the discount. */
html[data-welcome-cover]:not([data-timed-promo-ready]) [data-welcome-discount] { display: none; }
html[data-welcome-cover] :is(main.hero #hero-actions, #landing-header) button.welcome-offer-control {
  display: grid;
  box-sizing: border-box;
  justify-items: center;
  align-content: center;
  gap: 2px;
  inline-size: max-content;
  max-inline-size: 100%;
  min-block-size: 44px;
  height: auto;
  padding: 6px 12px;
  border: 2px solid #aa82ff;
  border-radius: 12px;
  color: #fff;
  background: #6d3cd1;
  box-shadow: 0 4px 12px rgb(51 25 109 / 26%);
  font: 750 clamp(13px, 3.5vw, 16px)/1.15 system-ui, sans-serif;
  text-align: center;
  white-space: normal;
  text-transform: none;
  animation: none !important;
}
html[data-welcome-cover] :is(main.hero #hero-actions, #landing-header) button.welcome-offer-control > span:first-child {
  font: inherit;
}
@media (max-width: 850px) {
  html[data-welcome-cover] :is(main.hero #hero-actions, #landing-header) button.welcome-offer-control {
    inline-size: clamp(108px, calc(100vw - 222px), 238px);
    padding: 4px 6px;
    font-size: clamp(12px, 3.35vw, 15px);
    line-height: 1.06;
  }
  #landing-header[data-offer-in-header] .full-header-inner {
    padding-inline: 12px;
    gap: 8px;
  }
  #landing-header[data-offer-in-header] .header-offer-slot {
    grid-template-columns: minmax(0, 1fr);
  }
  #landing-header[data-offer-in-header] .header-language {
    position: relative;
    inset: auto;
    transform: none;
  }
  #landing-header[data-offer-in-header] .header-language > summary {
    padding-inline: 4px;
  }
}
@media (max-width: 480px) {
  html[data-welcome-cover] :is(main.hero #hero-actions, #landing-header) button.welcome-offer-control {
    min-block-size: 50px !important;
    padding-block: 7px;
  }
}

html[data-welcome-cover] :is(main.hero #hero-actions, #landing-header) button.welcome-offer-control small {
  color: #fbf6ff;
  font: 600 .75em/1.1 system-ui, sans-serif;
  white-space: normal;
}
html[data-welcome-cover] :is(main.hero #hero-actions, #landing-header) button.welcome-offer-control:hover {
  background: #7b49df;
}
html[data-welcome-cover] :is(main.hero #hero-actions, #landing-header) button.welcome-offer-control:focus-visible {
  outline: 2px solid #e3cfff;
  outline-offset: 3px;
}
@media (min-width: 851px) and (max-width: 1199px) {
  #landing-header .header-offer-slot {
    max-inline-size: var(--header-offer-width, 180px);
  }
}

html[lang="de"] .hero-play-caption {
  width: max-content;
  max-width: none;
  white-space: nowrap;
}

/* Shared homepage CTA appearance, including the animated header destination. */
html[data-welcome-cover] :is(#landing-header, #hero-actions, #sticky-conversion, #try-free) .primary-web-cta {
  display: grid;
  box-sizing: border-box;
  align-content: center;
  justify-items: center;
  gap: 3px;
  height: auto;
  padding: 7px 14px;
  border: 2px solid #aa82ff;
  border-radius: 12px;
  color: #fff;
  background: #6d3cd1;
  box-shadow: 0 4px 12px rgb(51 25 109 / 26%);
  font: 750 14px/1.2 system-ui, sans-serif;
  white-space: normal;
  text-align: center;
  text-transform: none;
  cursor: pointer;
}
html[data-welcome-cover] :is(#landing-header, #hero-actions, #sticky-conversion, #try-free) .primary-web-cta:hover {
  color: #fff;
  background: #7b49df;
}
html[data-welcome-cover] :is(#landing-header, #hero-actions, #sticky-conversion, #try-free) .primary-web-cta small {
  color: #fbf6ff;
  font: 600 11px/1.15 system-ui, sans-serif;
  white-space: normal;
}
html[data-welcome-cover] #landing-header .header-cta-primary[hidden],
html[data-welcome-cover] #sticky-conversion[hidden] {
  display: none !important;
}
html[data-welcome-cover] :is(#landing-header, #sticky-conversion, #try-free) .secondary-web-cta {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.2);
  color: #f5f0ff;
  box-shadow: none;
  gap: 7px;
}
html[data-welcome-cover] :is(#landing-header, #sticky-conversion, #try-free) .secondary-web-cta:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
html[data-welcome-cover] .secondary-web-cta img {
  inline-size: 16px;
  block-size: 16px;
  object-fit: contain;
  flex: none;
}
html[data-welcome-cover]:not([data-timed-promo-ready]) [data-promo-active],
html[data-welcome-cover][data-timed-promo-ready] [data-promo-inactive] {
  display: none;
}
#sticky-conversion .paths,
#try-free .trial-paths .path {
  min-inline-size: 0;
}
#sticky-conversion .paths {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
}
#sticky-conversion .primary-web-cta,
#try-free .primary-web-cta {
  inline-size: 100%;
  min-block-size: 50px !important;
}
#sticky-conversion .dock-pricing {
  padding-inline: 18px;
  min-inline-size: 0;
  width: auto;
}
@media (prefers-reduced-motion: no-preference) {
  #sticky-conversion:not([hidden]) { animation: welcome-dock-appear 180ms ease-out both; }
  @keyframes welcome-dock-appear {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
  }
}
@media (min-width: 701px) {
  html[data-welcome-cover] #landing-header .full-header-actions > .header-cta-primary:not([hidden]) {
    display: grid !important;
  }
  html[data-welcome-cover] #landing-header .header-offer-slot { display: none !important; }
}
@media (min-width: 851px) {
  html[data-welcome-cover] main.hero #hero-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-welcome-cover] main.hero #hero-actions .welcome-hero-cta {
    width: min(310px, 100%) !important;
    min-inline-size: min(310px, 100%) !important;
    min-block-size: 62px;
    align-self: flex-start;
  }
}
html[data-welcome-cover] #landing-header .header-mobile-actions > .header-cta-primary {
  display: grid !important;
  width: 100%;
}
@media (max-width: 700px) {
  html[data-welcome-cover] #landing-header .full-header-actions > .header-cta-primary,
  html[data-welcome-cover] #sticky-conversion .dock-pricing {
    display: none !important;
  }
  html[data-welcome-cover] #landing-header .header-mobile-actions {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 8px;
  }
  html[data-welcome-cover] #landing-header .header-mobile-actions > .header-cta-primary {
    display: grid !important;
    width: 100%;
    min-block-size: 50px !important;
  }
  html[data-welcome-cover] main.hero #hero-actions .welcome-hero-cta {
    min-block-size: 50px !important;
  }
  #sticky-conversion .paths { grid-template-columns: minmax(0,1fr); }
}
/* Fix light-surface contrast on #try-free and clean single-line desktop header primary CTA */
html[data-welcome-cover] #try-free .secondary-web-cta {
  background: rgba(36, 19, 53, .04);
  border: 1px solid rgba(36, 19, 53, .24);
  color: #241335;
}
html[data-welcome-cover] #try-free .secondary-web-cta:hover {
  background: rgba(36, 19, 53, .10);
  border-color: rgba(36, 19, 53, .42);
  color: #160a24;
}
@media (min-width: 701px) {
  html[data-welcome-cover] #landing-header .full-header-actions > .header-cta-primary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-block-size: 44px;
    padding: 0 18px;
    white-space: nowrap;
  }
}
