/* ==========================================================================
   The home page hero, rebuilt by hand (2026-10-01): a large centred headline,
   one sentence, one call to action with its reassurance, then the
   presentation video right below — Sorank's layout in Josefine's colours.

   Mounted by josefine.js from hero-section.js. Every rule is scoped under
   .josefine-hero; Framer's own hero is hidden only once this one is in place
   (body.josefine-hero-ready), so a script failure leaves the old hero.
   ========================================================================== */

.josefine-hero-ready .framer-ykgwn3 {
  display: none !important;
}

/* Framer centres the stack's children: take the full width. */
[data-josefine-hero] {
  width: 100%;
  align-self: stretch;
}

.josefine-hero {
  --jh-txt: #fff;
  --jh-muted: #ffffffb3;
  --jh-line: #ffffff1a;
  --jh-violet: #7b7df5;
  --jh-violet-2: #a5a6ff;
  --jh-sans: "Figtree", "Figtree Placeholder", sans-serif;

  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  font-family: var(--jh-sans);
  color: var(--jh-txt);
  text-align: center;
}

.josefine-hero *,
.josefine-hero *::before,
.josefine-hero *::after {
  box-sizing: border-box;
}

.josefine-hero__inner {
  max-width: 1040px;
  margin: 0 auto;
}

/* The first screen in Josefine's violet, as in the video. */
.josefine-hero__band {
  padding: 100px 20px 28px;
  background: linear-gradient(170deg, #5b54e6 0%, #6670f2 55%, #7a83f6 100%);
  border-radius: 0 0 40px 40px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Light blue patches drifting slowly over the violet, after the moving
   background of the original first screen (owner, 2026-10-02). Only
   transforms move: no filter, so scrolling stays smooth. */
.josefine-hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.josefine-hero__glow span {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, #c8d4ffd9 0%, #c3d0ff59 45%, #c3d0ff00 100%);
  will-change: transform;
  animation: josefine-glow-a 24s ease-in-out infinite alternate;
}

.josefine-hero__glow span:nth-child(1) {
  top: -35vmax;
  left: -20vmax;
}

.josefine-hero__glow span:nth-child(2) {
  top: -10vmax;
  right: -30vmax;
  background: radial-gradient(closest-side, #b1c0ffbf 0%, #a9b8ff40 50%, #a9b8ff00 100%);
  animation-name: josefine-glow-b;
  animation-duration: 30s;
}

.josefine-hero__glow span:nth-child(3) {
  bottom: -45vmax;
  left: 15vmax;
  background: radial-gradient(closest-side, #4f47d98c 0%, #4f47d900 100%);
  animation-name: josefine-glow-c;
  animation-duration: 27s;
}

@keyframes josefine-glow-a {
  to {
    transform: translate(28vmax, 14vmax) scale(1.15);
  }
}

@keyframes josefine-glow-b {
  to {
    transform: translate(-32vmax, 10vmax) scale(0.9);
  }
}

@keyframes josefine-glow-c {
  to {
    transform: translate(18vmax, -16vmax) scale(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .josefine-hero__glow span {
    animation: none;
  }
}

/* The white sheet under the band: the video and a call to action.
   It scrolls with the page until the video reaches the top of the screen,
   then stays (see pinHero in josefine.js). */
.josefine-hero__below {
  display: flex;
  flex-direction: column;
  /* Once pinned (video just under the bar), the sheet reaches the bottom of
     the screen: no black strip during the pause. */
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  padding: 24px 20px 48px;
}


.josefine-hero__title {
  margin: 0 auto;
  max-width: 920px;
  font-family: var(--jh-sans);
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.josefine-hero__title span {
  display: block;
  color: #ffffffb3;
}

.josefine-hero__lede {
  max-width: 760px;
  margin: 14px auto 0;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 500;
  line-height: 1.5;
  color: #ffffffe6;
}

.josefine-hero__cta {
  margin: 22px 0 0;
}

/* Josefine's own pill, as on the original site: deep ink, Figtree 600, its
   natural width and a soft, still shadow. Hover only lightens the ink. */
.josefine-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  background: #0d0a1a;
  box-shadow: 0 8px 28px #1d1f6e59;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.josefine-hero__btn:hover {
  background-color: #1b1730;
}

.josefine-hero__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.josefine-hero__reassure {
  margin: 10px 0 0;
  font-size: 14px;
  color: #ffffffcc;
}

/* Social proof under the button: the stars and the Google rating. */
.josefine-hero__proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: #fff;
  text-decoration: none;
}

.josefine-hero__proof-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.josefine-hero__stars {
  display: inline-flex;
  gap: 2px;
}

.josefine-hero__stars svg {
  width: 14px;
  height: 14px;
  fill: #fbbf24;
}

/* Partners strip, as Sorank's client logos: one line scrolling slowly,
   faded at both ends. Logos in white. */
.josefine-hero__partners {
  margin: 22px auto 0;
  max-width: 1200px;
}

.josefine-hero__partners-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: #ffffffb3;
}

.josefine-hero__partners-track {
  display: flex;
  width: max-content;
  animation: josefine-partners 40s linear infinite;
  will-change: transform;
}

.josefine-hero__partners {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.josefine-hero__partners-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}

.josefine-hero__partners-group img {
  display: block;
  width: auto;
  height: 22px;
  opacity: 0.85;
}

.josefine-hero__partners-group img[alt="Universign"] {
  height: 36px;
}

.josefine-hero__partner-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #ffffffd9;
}

@keyframes josefine-partners {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .josefine-hero__partners-track {
    animation: none;
  }
}

.josefine-hero__video {
  position: relative;
  /* As wide as the screen's height allows, so the whole sheet fits. */
  width: min(1040px, 100%, (100vh - 260px) * 16 / 9);
  margin: 0 auto;
  border: 1px solid #0d0a1a14;
  border-radius: 24px;
  overflow: hidden;
  background: #0b0b14;
  box-shadow: 0 30px 80px #1d1f6e40, 0 6px 18px #0d0a1a1f;
  aspect-ratio: 16 / 9;
}

.josefine-hero__video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Full screen, the whole film shows, on a black ground. */
.josefine-hero__video video:fullscreen {
  object-fit: contain;
  background: #000;
}

.josefine-hero__video video:-webkit-full-screen {
  object-fit: contain;
  background: #000;
}

.josefine-hero__sound {
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #ffffff33;
  border-radius: 999px;
  background: #0d0a1acc;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 600 14px var(--jh-sans);
  color: #fff;
  cursor: pointer;
}

.josefine-hero__sound:focus-visible {
  outline: 3px solid var(--jh-violet-2);
  outline-offset: 2px;
}

.josefine-hero__stats-cta {
  margin: 32px 0 0;
}

/* Under the video, the same pill in the violet of the first screen. */
.josefine-hero__btn--violet {
  border-color: #ffffff33;
  background: #6e77f4;
  box-shadow: 0 8px 28px #6e77f459;
}

.josefine-hero__btn--violet:hover {
  background-color: #5f68f0;
}

/* On a phone, Sorank's proportions (owner's capture, 2026-10-02): a compact
   first screen with the video showing at its foot, then plain scrolling. */
@media (max-width: 810px) {
  .josefine-hero__band {
    padding: 100px 16px 36px;
    border-radius: 0 0 28px 28px;
  }

  .josefine-hero__title {
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.045em;
  }

  .josefine-hero__lede {
    margin-top: 14px;
    font-size: 15.5px;
    line-height: 1.45;
  }

  .josefine-hero__cta {
    margin-top: 20px;
  }

  .josefine-hero__btn {
    min-height: 44px;
    padding: 0 22px;
  }

  .josefine-hero__partners {
    margin-top: 24px;
  }

  .josefine-hero__below {
    min-height: 0;
    padding: 20px 10px 64px;
  }

  .josefine-hero__video {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px #1d1f6e47, 0 6px 18px #0d0a1a1f;
  }

  .josefine-hero__stats-cta {
    margin-top: 24px;
  }

  /* A small button, so it hides less of the picture. */
  .josefine-hero__sound {
    right: 8px;
    bottom: 8px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }
}

/* The section that slides over the white sheet arrives with rounded top
   corners (marked by josefine.js). */
.josefine-home [data-josefine-over] {
  border-radius: 40px 40px 0 0;
}

@media (max-width: 810px) {
  /* Its rounded corners overlap the white sheet, so they show as corners
     and not as a square black edge. */
  .josefine-home [data-josefine-over] {
    /* Framer draws it 390px wide: on a wider phone the page's square black
       ground showed beside its corners. */
    width: 100% !important;
    margin-top: -28px;
    border-radius: 28px 28px 0 0;
  }
}
