/* "Content" group additions (Expertise, FAQ, legal, 404, confirmation, blog blocks) — not in the generated freedom.css. */

/* ---------- Things a script shows or hides ---------- */
[data-fp-situations] [hidden],
[data-fp-faq] [hidden],
[data-fp-faq-hero] [hidden],
[data-fp-blog] [hidden],
[data-fp-blog-feature] [hidden],
[data-fp-legal] [hidden] {
  display: none !important;
}

/* ---------- Expertise hero, "pinned" (PinnedReveal) ----------
 * The hero sticks only once content-pinned.js has set --pin-top; before that it scrolls like any section.
 * The blocks after it are the rising sheet: above the hero, opaque, the first one with a rounded top. */
.fp-content-pin:not([data-pin-ready]) {
  position: relative;
}

:where(.fp-content-pin ~ *) {
  position: relative;
  z-index: 1;
  background-color: var(--fp-bg);
}

.fp-content-pin + * {
  border-radius: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 44px) 0 0;
}

/* ---------- Expertise situations: the active marker fills with the time ---------- */
[data-fp-situations] .fp-AudienceSection-tabMarkerFill {
  transform: scaleY(0);
}

[data-fp-situations] .fp-AudienceSection-tab[aria-selected='true'] .fp-AudienceSection-tabMarkerFill {
  transform: scaleY(1);
}

.fp-content-play .fp-AudienceSection-tab[aria-selected='true'] .fp-AudienceSection-tabMarkerFill {
  animation: fp-content-fill 5.5s linear forwards;
}

.fp-content-play[data-hold] .fp-AudienceSection-tabMarkerFill,
.fp-content-play[data-offscreen] .fp-AudienceSection-tabMarkerFill {
  animation-play-state: paused;
}

@keyframes fp-content-fill {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.fp-content-enter {
  animation: fp-content-in 0.5s var(--fp-ease-out, ease-out) both;
}

@keyframes fp-content-in {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.fp-content-drawCurve {
  stroke-dasharray: 1;
  animation: fp-content-draw 1.4s ease-in-out both;
}

@keyframes fp-content-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- FAQ hero: the orientation cards fanned out like a hand of cards ---------- */
@media (min-width: 1024px) {
  .fp-FaqHeroDesk-card {
    z-index: 2;
    transition:
      transform 0.45s var(--fp-ease-out, ease-out),
      box-shadow 0.3s ease;
  }

  .fp-FaqHeroDesk-card:nth-child(2) {
    z-index: 1;
    transform: translate(-165px, 30px) rotate(-8deg);
  }

  .fp-FaqHeroDesk-card:nth-child(3) {
    z-index: 0;
    transform: translate(165px, 30px) rotate(8deg);
  }

  .fp-FaqHeroDesk-card.fp-FaqHeroDesk-hot {
    z-index: 3;
  }

  .fp-FaqHeroDesk-card:nth-child(1):hover {
    z-index: 4;
    transform: translateY(-14px);
  }

  .fp-FaqHeroDesk-card:nth-child(2):hover {
    z-index: 4;
    transform: translate(-165px, 16px) rotate(-4deg);
  }

  .fp-FaqHeroDesk-card:nth-child(3):hover {
    z-index: 4;
    transform: translate(165px, 16px) rotate(4deg);
  }
}

/* FAQ answers are rich text: paragraphs and links as in the source. */
.fp-content-answer p {
  margin: 0;
}

.fp-content-answer p + p,
.fp-content-answer ul,
.fp-content-answer ol {
  margin: 0.75em 0 0;
}

.fp-content-answer a {
  color: var(--fp-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 106, 92, 0.6);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.fp-content-answer a:hover {
  color: var(--fp-coral-strong);
}

/* ---------- Legal documents: rich text with the source's paragraph, list and link styles ---------- */
.fp-content-legalText > * {
  margin: 0;
}

.fp-content-legalText p {
  color: var(--fp-ink-soft);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.fp-content-legalText > * + *,
.fp-LegalPage-facts + .fp-content-legalText,
.fp-LegalPage-address + .fp-content-legalText,
.fp-content-legalText + .fp-LegalPage-facts,
.fp-content-legalText + .fp-LegalPage-address,
.fp-content-legalText + .fp-CookieVendors-list {
  margin-top: 1rem;
}

.fp-content-legalText + .fp-content-consent {
  margin-top: 1.25rem;
}

.fp-content-legalText ul {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.fp-content-legalText ul li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--fp-ink-soft);
  line-height: 1.65;
}

.fp-content-legalText ul li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 0.2rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fp-cta-gradient);
  box-shadow: 0 0 0 4px rgba(255, 106, 92, 0.14);
}

.fp-content-legalText a {
  color: var(--fp-coral-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fp-content-legalText h3,
.fp-content-legalText h4 {
  color: var(--fp-ink);
  font-size: 1.125rem;
  font-weight: 800;
}

/* ---------- Blog: carousel progress bars, photo zoom ---------- */
.fp-BlogMagazine-bar .fp-BlogMagazine-barFill {
  transform: scaleX(0);
}

.fp-BlogMagazine-bar[aria-current] .fp-BlogMagazine-barFill {
  transform: scaleX(1);
}

.fp-content-zoom {
  animation: fp-content-zoom 1.1s var(--fp-ease-out, ease-out) both;
}

@keyframes fp-content-zoom {
  from {
    opacity: 0;
    transform: scale(1.12);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fp-BlogShared-indicator {
  transition:
    transform 0.45s cubic-bezier(0.3, 1.3, 0.5, 1),
    width 0.45s cubic-bezier(0.3, 1.3, 0.5, 1);
}

@media (prefers-reduced-motion: reduce) {
  .fp-content-play .fp-AudienceSection-tab[aria-selected='true'] .fp-AudienceSection-tabMarkerFill,
  .fp-content-enter,
  .fp-content-drawCurve,
  .fp-content-zoom {
    animation: none;
  }

  .fp-FaqHeroDesk-card,
  .fp-BlogShared-indicator {
    transition: none;
  }
}
