/*
 * The hero's showcase: the spotlight card, the row of tiles under it and the
 * category rail.
 *
 * Only .hs* selectors, so the pearl - .hero, .hero__bg and everything
 * hero-pearl.css paints - is left exactly as it was.
 *
 * Everything here is glass rather than paint: a little white, a blur, and a
 * hairline. The pearl goes on moving behind all of it, which is the point.
 */

.hs {
  --hs-glass: rgba(255, 255, 255, .42);
  --hs-glass-strong: rgba(255, 255, 255, .58);
  --hs-edge: rgba(255, 255, 255, .72);
  --hs-ink: #062A40;
  --hs-ink-2: #3C5C70;
  --hs-brand: #0C8CE9;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ------------------------------------------------------------- the spotlight */
.hs-card {
  position: relative;
  border-radius: 22px;
  background: var(--hs-glass);
  border: 1px solid var(--hs-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 24px 56px -30px rgba(6, 42, 64, .5);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  overflow: hidden;
}

/* every card is stacked in the same box, so the card never changes height */
.hs-stage { position: relative; }
.hs-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.995);
  transition: opacity .55s ease, transform .55s ease, visibility .55s;
  text-decoration: none; color: inherit;
}
.hs-slide:first-child { position: relative; }
.hs-slide.is-on { opacity: 1; visibility: visible; transform: none; }

/* the picture is inset, with glass all around it, so the pearl frames it */
.hs-shot {
  position: relative; display: block; margin: 12px 12px 0;
  border-radius: 15px; overflow: hidden;
  background: rgba(255, 255, 255, .28);
  box-shadow: 0 10px 26px -18px rgba(6, 42, 64, .8);
}
.hs-shot img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.hs-slide:hover .hs-shot img { transform: scale(1.04); }

/* An illustration is drawn to be seen whole, so it is fitted inside the frame
   rather than cropped to it - and the frame goes clear, so the pearl shows
   through the transparent parts of the drawing. */
.hs-shot--whole { background: transparent; box-shadow: none; }
.hs-shot--whole img { aspect-ratio: 16 / 10; object-fit: contain; padding: 4px; }

/* the price, or the word FREE, over the picture */
.hs-meta {
  position: absolute; left: 12px; top: 12px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; line-height: 1; letter-spacing: .01em;
  color: var(--hs-ink); background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px -8px rgba(6, 42, 64, .5);
}
.hs-meta--free { color: #fff; background: linear-gradient(120deg, #0C8CE9, #14B8A6); }

.hs-text { display: block; padding: 15px 20px 18px; }
.hs-eyebrow {
  display: block; margin-bottom: 7px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--hs-brand);
}
.hs-title { display: block; font-size: 20px; font-weight: 800; line-height: 1.22; color: var(--hs-ink); }
.hs-line {
  display: block; margin-top: 8px; min-height: 42px;
  font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--hs-ink-2);
}
.hs-cta {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 13px;
  font-size: 14px; font-weight: 800; color: var(--hs-brand);
}
.hs-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.hs-slide:hover .hs-cta svg { transform: translateX(4px); }

/* the controls */
.hs-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px 12px; border-top: 1px solid rgba(255, 255, 255, .6);
}
.hs-arrow {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 10px;
  background: rgba(255, 255, 255, .5); color: #23425A; cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.hs-arrow:hover { color: var(--hs-brand); border-color: var(--hs-brand); background: rgba(255, 255, 255, .85); }
.hs-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }

.hs-dots { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 1 1 auto; flex-wrap: wrap; }
.hs-dot { display: block; width: 22px; height: 14px; padding: 5px 0 0; border: 0; background: none; cursor: pointer; }
.hs-dot i { display: block; height: 4px; border-radius: 999px; background: rgba(6, 42, 64, .22); transition: background .2s ease, transform .2s ease; }
.hs-dot:hover i { background: rgba(6, 42, 64, .4); }
.hs-dot.is-on i { background: linear-gradient(120deg, #0C8CE9, #14B8A6); transform: scaleY(1.5); }

/* the three things that are true of every card */
.hs-trust {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; padding: 0 4px;
  font-size: 12.5px; font-weight: 700; color: var(--hs-ink-2);
}
.hs-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hs-trust svg { width: 15px; height: 15px; fill: none; stroke: var(--hs-brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------- all of it, across the page */
.hs-tiles {
  --hs-glass: rgba(255, 255, 255, .38);
  --hs-edge: rgba(255, 255, 255, .7);
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-top: clamp(30px, 4vw, 46px);
}
.hs-tile {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: 16px; text-decoration: none;
  background: var(--hs-glass); border: 1px solid var(--hs-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 30px -26px rgba(6, 42, 64, .7);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.hs-tile__shot { display: block; flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .5); }
.hs-tile__shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs-tile__shot--whole { background: rgba(255, 255, 255, .34); }
.hs-tile__shot--whole img { object-fit: contain; padding: 5px; }
.hs-tile__text { display: block; min-width: 0; }
.hs-tile__eyebrow {
  display: block; font-size: 13.5px; font-weight: 800; line-height: 1.25; color: #062A40;
  overflow: hidden; text-overflow: ellipsis;
}
.hs-tile__meta { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 700; color: #4C6B80; }
.hs-tile__meta.is-free { color: #0F766E; }
.hs-tile:hover, .hs-tile:focus-visible { transform: translateY(-2px); background: rgba(255, 255, 255, .62); border-color: #fff; box-shadow: 0 18px 34px -24px rgba(6, 42, 64, .8); }
.hs-tile.is-on { background: rgba(255, 255, 255, .66); border-color: #fff; box-shadow: inset 0 0 0 1px rgba(12, 140, 233, .35), 0 18px 34px -26px rgba(6, 42, 64, .7); }

/* ------------------------------------------------------------- the rail */
.hs-rail { position: relative; z-index: 1; margin-top: clamp(26px, 3vw, 36px); }
.hs-rail__lead {
  margin: 0 0 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #5B7285;
}
.hs-rail__row { display: flex; flex-wrap: wrap; gap: 9px; }
.hs-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; line-height: 1; color: #23425A; text-decoration: none;
  background: rgba(255, 255, 255, .45); border: 1px solid rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: color .18s ease, border-color .18s ease, transform .18s ease, background .18s ease;
}
.hs-chip b { font-size: 12px; font-weight: 800; color: #5B7285; }
.hs-chip:hover { color: var(--hs-brand); border-color: var(--hs-brand); background: rgba(255, 255, 255, .78); transform: translateY(-1px); }
.hs-chip:hover b { color: var(--hs-brand); }
.hs-chip--all { color: #fff; background: linear-gradient(120deg, #0C8CE9, #14B8A6); border-color: transparent; }
.hs-chip--all b { color: rgba(255, 255, 255, .85); }
.hs-chip--all:hover { color: #fff; border-color: transparent; }
.hs-chip--cert { color: #fff; background: rgba(11, 42, 69, .85); border-color: rgba(255, 255, 255, .25); }
.hs-chip--cert:hover { color: #fff; background: rgba(11, 42, 69, .95); border-color: rgba(255, 255, 255, .45); }

@media (max-width: 1100px) {
  .hs-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hs-card { max-width: 560px; margin: 0 auto; }
  .hs-trust { justify-content: center; }
  .hs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hs-title { font-size: 18px; }
  .hs-line { font-size: 13.5px; min-height: 0; }
  .hs-text { padding: 14px 16px 16px; }
  .hs-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hs-tile { padding: 8px 10px 8px 8px; gap: 10px; }
  .hs-tile__shot { width: 40px; height: 40px; border-radius: 10px; }
  .hs-tile__eyebrow { font-size: 12.5px; }
  .hs-rail__row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .hs-rail__row::-webkit-scrollbar { display: none; }
  .hs-chip { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-slide, .hs-shot img, .hs-cta svg, .hs-tile { transition: none; }
}
