/*
 * SHARK page - 1. Hero: title, rotating product photos (sd-rotator), key points bar.
 * In the brochure: the cover.
 */

.shark .hero {
  position: relative;
  overflow: hidden;
  background: var(--sd-night);
  color: var(--sd-white);
}

.shark .hero-downloads {
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.shark .hero-main {
  max-width: var(--sd-wide);
  margin: 0 auto;
  padding: max(var(--sd-pad), 76px) 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.shark .hero-text {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.shark .hero-text .eyebrow {
  margin-bottom: 16px !important;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.shark .hero h1 {
  font-size: clamp(34px, min(4vw, calc(var(--sd-vh) * 0.075)), 54px);
  line-height: 1.18;
}

.shark .hero-sub {
  margin-top: 16px !important;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
}

.shark .hero-visual {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  justify-content: center;
  background: radial-gradient(closest-side, var(--sd-deep), var(--sd-night));
}

.shark .hero-slides {
  display: grid;
  justify-items: center;
  align-items: center;
  max-width: 100%;
}

.shark .hero-img {
  grid-area: 1 / 1;
  width: auto !important;
  max-height: clamp(340px, calc(var(--sd-vh) - var(--sd-pad) - 290px), 560px);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.shark .hero-img.is-on {
  opacity: 1;
}

.shark .dots {
  grid-area: 2 / 1;
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 10px;
}

.shark .dots button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shark .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sd-soft);
}

.shark .dots .is-on span {
  background: var(--sd-sky);
}

.shark .usp-bar {
  background: var(--sd-deep);
  padding: 26px 24px;
}

.shark .usp {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--sd-wide);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px 24px;
}

.shark .usp li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.shark .usp-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sd-night);
  color: var(--sd-sky);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shark .usp li > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.shark .usp b {
  font-size: 15px;
  line-height: 1.3;
}

.shark .usp small {
  font-size: 13px;
  line-height: 1.4;
  color: var(--sd-soft);
}

@media (min-width: 600px) and (max-width: 979px) {
  .shark .usp {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 599px) {
  .shark .usp {
    grid-template-columns: 1fr 1fr;
    gap: 16px 14px;
  }

  .shark .usp li {
    flex-direction: row;
    gap: 9px;
  }

  .shark .usp li:last-child {
    grid-column: 1 / -1;
  }

  .shark .usp-icon {
    width: 30px;
    height: 30px;
  }

  .shark .usp-icon svg {
    width: 16px;
    height: 16px;
  }

  .shark .usp b {
    font-size: 14px;
  }

  .shark .usp small {
    font-size: 12px;
  }

  .shark .usp-bar {
    padding: 20px 16px;
  }

  .shark .hero-img {
    max-height: min(44svh, 300px);
  }

  /* Downloads above the headline, so two buttons can't cover it */

  .shark .hero-downloads {
    position: static;
    justify-content: center;
    padding: 16px 24px 0;
  }

  .shark .hero-main {
    padding-top: 24px;
  }
}

@media (min-width: 1200px) and (min-height: 1000px) {
  .shark .hero-img {
    max-height: min(740px, calc(var(--sd-vh) - var(--sd-pad) - 290px));
  }
}

/* ---- Brochure ---------------------------------------------------------------------- */

/* Cover: the hero, dark, edge to edge. The sheet itself is dark too, so the
   cover can stay a little shorter than the page and never spill onto page 2 */
@page cover {
  background: #0B1820;
}

.brochure-mode .shark .hero.brochure-cover {
  height: 285mm;
  box-sizing: border-box;
  padding: 16mm 14mm 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--sd-night);
}

.brochure-mode .shark .hero-main {
  flex: 1;
  padding: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 8mm;
  flex-wrap: nowrap;
}

.brochure-mode .shark .hero-text {
  flex: none;
  gap: 0;
}

.brochure-mode .shark .hero h1 {
  font-size: 34pt;
}

.brochure-mode .shark .hero-sub {
  font-size: 14pt;
}

.brochure-mode .shark .hero-visual {
  flex: 1;
  min-height: 0;
  align-items: center;
}

.brochure-mode .shark .hero-img {
  max-height: 125mm;
  width: auto;
  margin: 0 auto;
}

.brochure-mode .shark .usp-bar {
  margin: auto -14mm 0;
  padding: 6mm 14mm 8mm;
}

.brochure-mode .shark .usp {
  grid-template-columns: repeat(5, 1fr);
  gap: 4mm;
}

.brochure-mode .shark .usp li {
  flex-direction: column;
  gap: 2mm;
}

.brochure-mode .shark .usp li:last-child {
  grid-column: auto;
}

.brochure-mode .shark .usp-icon {
  width: 9mm;
  height: 9mm;
}

.brochure-mode .shark .usp b {
  font-size: 9pt;
}

.brochure-mode .shark .usp small {
  font-size: 8pt;
}
