/* Font Awesome Free 6.5.1, by Fonticons, Inc. (font: SIL OFL 1.1). */
@font-face {
  font-family: "Font Awesome Free";
  src: url("../fonts/fa-solid-900.woff2") format("woff2");
  font-weight: 900;
  font-display: block;
}

.fas {
  display: inline-block;
  font: normal 900 1em/1 "Font Awesome Free";
}

.fa-sliders-h::before { content: "\f1de"; }
.fa-bars::before { content: "\f0c9"; }
.fa-download::before { content: "\f019"; }
.fa-star::before { content: "\f005"; }
.fa-play-circle::before { content: "\f144"; }
.fa-volume-up::before { content: "\f028"; }
.fa-wrench::before { content: "\f0ad"; }
.fa-heart::before { content: "\f004"; }
.fa-infinity::before { content: "\f534"; }
.fa-tachometer-alt::before { content: "\f625"; }
.fa-microchip::before { content: "\f2db"; }
.fa-layer-group::before { content: "\f5fd"; }
.fa-puzzle-piece::before { content: "\f12e"; }
.fa-desktop::before { content: "\f390"; }

html {
  scroll-padding-top: 5rem;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
}

[aria-label="Main navigation"] :focus-visible {
  outline-color: #fff;
}

[aria-label="Main navigation"] [data-open-download]:focus-visible {
  outline-offset: 3px;
}

.companion-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem 2.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  color: #374151;
}

.companion-tools h3 {
  margin-bottom: .25rem;
  color: #111827;
  font-size: 1.125rem;
  font-weight: 700;
}

body:has(.download-dialog[open]) {
  overflow: hidden;
}

.download-dialog {
  position: fixed;
  inset: 0;
  width: min(30rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #dbe7fa;
  border-radius: 1.25rem;
  background: #fff;
  color: #172554;
  box-shadow: 0 24px 84px rgb(12 29 80 / .28);
}

.download-dialog::backdrop {
  background: rgb(15 23 42 / .6);
  backdrop-filter: blur(3px);
}

.download-panel {
  position: relative;
  padding: 2rem;
  background: linear-gradient(165deg, #eff6ff, #fff 65%);
}

.download-close {
  appearance: none;
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 0;
  border-radius: .75rem;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font-size: 1.625rem;
  line-height: 1;
}

.download-close:hover {
  background: #dbeafe;
}

.download-close:focus-visible {
  outline: none;
  background: #1d4ed8;
  color: #fff;
}

.download-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 1.75rem;
}

.download-logo {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: .75rem;
}

.download-heading h2 {
  font-size: clamp(1.375rem, 5vw, 1.625rem);
  font-weight: 700;
  line-height: 1.12;
}

.download-heading p {
  margin-top: .3rem;
  color: #475569;
  line-height: 1.3;
}

.download-action {
  display: flex;
  min-height: 3.375rem;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  margin-top: 1.5rem;
  padding: .625rem 1rem;
  border-radius: .75rem;
  background: linear-gradient(120deg, #1d4ed8, #1e40af);
  box-shadow: 0 5px 12px rgb(29 78 216 / .22);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  transition: background .15s ease, box-shadow .15s ease;
}

.download-action:hover {
  background: #1e3a8a;
  box-shadow: 0 7px 16px rgb(29 78 216 / .28);
}

@media (max-width: 420px) {
  .download-panel {
    padding: 1.5rem 1.125rem 1.125rem;
  }

  .download-heading {
    gap: .75rem;
  }

  .download-logo {
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-open-download],
  .download-action {
    transition: none;
  }

  [data-open-download]:hover {
    transform: none;
  }
}
