.button-primary,
.button-secondary {
  border: 0;
  background: var(--carbon);
  color: var(--ivory);
  font-family: "Rubik", system-ui, sans-serif;
  letter-spacing: 0;
  box-shadow: none;
}

.button-primary {
  min-height: 64px;
  padding: 16px 38px;
  border-radius: 20px;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
}

.button-secondary {
  min-height: 56px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
}

.button-primary:hover,
.button-secondary:hover {
  background: #5b594f;
  color: #fff;
  transform: none;
  box-shadow: none;
}

.button-primary:disabled,
.button-secondary:disabled {
  background: #b8b09a;
  color: #ded5b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button-small.button-secondary {
  min-height: 44px;
  padding: 11px 24px;
  font-size: 16px;
}

.hero .hero-primary {
  min-height: 56px;
  padding: 14px 30px;
  border-radius: 18px;
  background: var(--coral);
  color: var(--carbon);
  font-size: 18px;
}

.hero .hero-primary:hover {
  background: #ff9874;
  color: var(--carbon);
}

.hero .hero-primary .lucide {
  flex: none;
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.action-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 12px;
  color: var(--carbon);
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.action-scroll b {
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
}

.action-scroll:hover b {
  transform: translateY(5px);
}

.action-scroll:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.download-dialog {
  width: min(520px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: transparent;
  color: var(--carbon);
  overflow: visible;
}

.download-dialog::backdrop {
  background: rgba(29, 29, 27, 0.64);
  backdrop-filter: blur(6px);
}

.download-card {
  position: relative;
  padding: 38px;
  border: 1px solid rgba(29, 29, 27, 0.22);
  border-radius: 26px;
  background: var(--light);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.4);
}

.download-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--clay);
  border-radius: 50%;
  background: var(--ivory);
  color: var(--carbon);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

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

.download-icon {
  position: relative;
  width: 82px;
  height: 86px;
  margin-bottom: 22px;
  background: transparent;
}

.download-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-icon.is-checking::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 3px solid rgba(29, 29, 27, 0.25);
  border-top-color: var(--carbon);
  border-radius: 50%;
  animation: checking-spin 0.8s linear infinite;
}

.download-icon.is-found {
  filter: drop-shadow(0 0 12px rgba(95, 174, 48, 0.45));
}

@keyframes checking-spin {
  to {
    transform: rotate(360deg);
  }
}

.download-card h2 {
  max-width: 410px;
  margin: 0;
  font-size: clamp(32px, 7vw, 43px);
  line-height: 1;
}

.download-card > p:not(.eyebrow):not(.download-note) {
  margin: 16px 0 24px;
  color: var(--soft);
  line-height: 1.5;
}

.download-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.download-actions .button {
  width: 100%;
}

.download-actions .button-primary {
  grid-column: 1 / -1;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: 18px;
  font-size: 18px;
}

.download-actions .button-secondary {
  width: auto;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 16px;
}

.download-actions .success-close {
  grid-column: 1 / -1;
  justify-self: center;
  width: fit-content;
}

.download-actions .download-secondary {
  background: var(--carbon);
  color: var(--ivory);
}

.download-actions .download-retry {
  background: var(--carbon);
  color: var(--ivory);
  text-decoration: none;
}

.download-actions .download-secondary:hover,
.download-actions .download-retry:hover {
  background: #5b594f;
  color: #fff;
}

.download-note {
  margin: 14px 0 0;
  color: #807761;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.noscript-copy {
  margin: 0;
  padding: 16px 24px;
  background: var(--topaz);
  color: var(--carbon);
  text-align: center;
}

.download-close:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .download-card {
    padding: 32px 22px 24px;
  }

  .download-card h2 {
    font-size: 32px;
  }

  .download-actions {
    grid-template-columns: 1fr;
  }

  .download-actions .button-primary {
    grid-column: auto;
  }

  .download-actions .button-secondary {
    width: 100%;
  }

  .hero .action-scroll {
    width: 100%;
  }
}
