/* ═══════════════════════════════════════════════════════════
   Knovit Landing · v8 additions
   1) Voice-of-customer card — restyles the "context switching"
      pull quote in the Problem section into a clear, large
      testimonial. Selectors are prefixed with .kn-problem to
      out-specify the inline <style> rules in the HTML head.
   2) .kn-sol — the "With Knovit" solution section: an Apple-style
      video showcase that answers the problem.
   ═══════════════════════════════════════════════════════════ */

/* ── 1 · Voice of customer card ─────────────────────────── */
.kn-problem .kn-problem__quote {
  position: relative;
  max-width: 880px;
  margin: 120px auto 0;
  padding: 64px 60px 52px;
  border-radius: 32px;
  text-align: left;
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(253,75,49,0.06) 0%, transparent 55%),
    linear-gradient(165deg, #FFFFFF 0%, #FBF6F1 100%);
  border: 1px solid rgba(15,18,38,0.06);
  box-shadow: 0 40px 90px -50px rgba(31,30,58,0.35), 0 2px 1px rgba(255,255,255,0.6) inset;
}
/* "Voice of customer" eyebrow */
.kn-problem .kn-problem__quote::before {
  content: "Voice of customer";
  display: inline-block;
  font: 600 12px var(--font-text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--knovit-coral);
  margin-bottom: 26px;
}
/* Big quotation mark */
.kn-problem .kn-problem__quote::after {
  content: "\201C";
  position: absolute;
  top: 30px;
  right: 48px;
  font-family: var(--font-display);
  font-size: 140px;
  line-height: 1;
  color: rgba(60,0,124,0.10);
  pointer-events: none;
}
.kn-problem .kn-problem__quote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin: 0 0 32px;
  text-wrap: balance;
}
.kn-problem .kn-problem__quote footer {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
  font: 500 15px var(--font-text);
  color: var(--ink-600);
  letter-spacing: -0.005em;
}
/* Replace the thin line with an avatar dot cluster */
.kn-problem .kn-problem__quote footer .kn-problem__quote-line {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,0.7), transparent 60%),
    linear-gradient(135deg, #E7DCF5, #F6CBDD);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
  flex-shrink: 0;
}

/* ── 2 · "With Knovit" solution section ─────────────────── */
.kn-sol {
  position: relative;
  /* Bright, calm relief after the problem narrative — the "answer". */
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, #F1ECFA 0%, transparent 60%),
    linear-gradient(180deg, #FBFAFE 0%, #F6F4FB 100%);
  padding: 150px 0 160px;
  overflow: hidden;
}
.kn-sol__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.kn-sol__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 12px var(--font-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--knovit-purple);
  margin: 0 0 24px;
}
.kn-sol__eyebrow-tick {
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.kn-sol__headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--ink-900);
  margin: 0 0 22px;
  text-wrap: balance;
}
.kn-sol__headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--knovit-purple);
}
.kn-sol__sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-600);
  max-width: 560px;
  margin: 0 auto 56px;
  text-wrap: pretty;
}

/* Video player — Apple-style rounded frame */
.kn-sol__player {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: #0E0E11;
  box-shadow:
    0 60px 120px -50px rgba(31,30,58,0.55),
    0 12px 40px -16px rgba(31,30,58,0.30),
    0 0 0 1px rgba(15,18,38,0.06);
  isolation: isolate;
}
.kn-sol__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0E0E11;
}
/* In fullscreen the <video> element fills a 16:9 screen; keep the square
   film whole (letterboxed on black) instead of cropping top and bottom. */
.kn-sol__video:fullscreen { object-fit: contain; background: #000; }
.kn-sol__video:-webkit-full-screen { object-fit: contain; background: #000; }
.kn-sol__video:-moz-full-screen { object-fit: contain; background: #000; }

/* Designed poster overlay (shown until play) — a calm gradient with a
   small badge, so the section looks intentional even before the file
   is in place. Hidden once playing. */
.kn-sol__poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: 26px 28px;
  /* Real cover frame (first frame of the film) + scrims: a soft radial darken
     behind the centred play button so it pops, and a bottom gradient so the
     caption stays legible over the bright office shot. */
  background:
    radial-gradient(circle at 50% 50%, rgba(13,7,28,0.42) 0%, rgba(13,7,28,0) 32%),
    linear-gradient(180deg, rgba(13,7,28,0.10) 0%, rgba(13,7,28,0.14) 45%, rgba(13,7,28,0.78) 100%),
    url(/assets/knovit-ad-poster.webp) center / cover no-repeat;
  transition: opacity 0.5s var(--ease-out, cubic-bezier(0.22,1,0.36,1));
}
.kn-sol__player.is-playing .kn-sol__poster,
.kn-sol__player.is-playing .kn-sol__play {
  opacity: 0;
  pointer-events: none;
}
/* Paused mid-playback → bring the play button back as a resume affordance */
.kn-sol__player.is-playing.is-paused .kn-sol__play {
  opacity: 1;
  pointer-events: auto;
}
/* Video controls — bottom-right, appear only while the film is playing.
   Mute sits on the left, fullscreen to its right. */
.kn-sol__mute,
.kn-sol__fullscreen {
  position: absolute;
  bottom: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: rgba(13,7,28,0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, background 0.2s ease, transform 0.2s ease;
}
.kn-sol__mute { right: 66px; }
.kn-sol__fullscreen { right: 16px; }
.kn-sol__player.is-playing .kn-sol__mute,
.kn-sol__player.is-playing .kn-sol__fullscreen {
  opacity: 1;
  pointer-events: auto;
}
.kn-sol__mute:hover,
.kn-sol__fullscreen:hover { background: rgba(13,7,28,0.78); transform: scale(1.06); }
.kn-sol__mute svg,
.kn-sol__fullscreen svg { display: block; }
.kn-sol__poster-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.92);
}
.kn-sol__poster-badge {
  font: 600 12px var(--font-text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 5px 13px;
}

/* Play button */
.kn-sol__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 88px; height: 88px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 18px 50px -12px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-out, cubic-bezier(0.22,1,0.36,1)),
              box-shadow 0.3s ease;
}
.kn-sol__play:hover {
  transform: translate(-50%, -50%) scale(1.07);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.6);
}
.kn-sol__play-icon {
  width: 0; height: 0;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--knovit-purple);
  margin-left: 6px;
}

/* Caption under the player */
.kn-sol__caption {
  margin: 28px auto 0;
  font: 500 14px var(--font-text);
  color: var(--ink-500);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kn-sol__caption-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--knovit-coral);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .kn-sol { padding: 110px 0 120px; }
  .kn-sol__headline { font-size: clamp(34px, 9vw, 52px); }
  .kn-sol__sub { font-size: 17px; margin-bottom: 40px; }
  .kn-sol__player { border-radius: 22px; }
  .kn-sol__play { width: 72px; height: 72px; }

  .kn-problem .kn-problem__quote { padding: 44px 32px 36px; margin-top: 80px; border-radius: 26px; }
  .kn-problem .kn-problem__quote::after { font-size: 100px; top: 18px; right: 28px; }
  .kn-problem .kn-problem__quote p { font-size: clamp(24px, 6.6vw, 34px); }
}
@media (max-width: 560px) {
  .kn-sol__player { border-radius: 18px; }
  .kn-sol__play { width: 62px; height: 62px; }
  .kn-sol__play-icon { border-width: 11px 0 11px 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .kn-sol__poster, .kn-sol__play { transition: none; }
}
