/* Shared download / trial modal */
body.dl-modal-open { overflow: hidden; }

.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.dl-modal[hidden] { display: none !important; }

.dl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.82);
  backdrop-filter: blur(12px);
  animation: dlFadeIn 0.22s ease;
}

.dl-modal-card {
  position: relative;
  width: min(460px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(168deg, rgba(18, 28, 48, 0.98), rgba(6, 10, 18, 0.99));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  padding: 32px 28px 28px;
  animation: dlModalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.dl-modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--accent), var(--green));
  opacity: 0.85;
}

.dl-modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s, color 0.15s;
}

.dl-modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.dl-modal-head {
  text-align: center;
  margin-bottom: 6px;
}

.dl-modal-icon {
  width: 64px;
  height: 64px;
  margin: 10px auto 0;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.22), rgba(34, 211, 238, 0.14));
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 10px 32px rgba(34, 211, 238, 0.15);
}

.dl-modal-badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--green);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.dl-modal-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  margin: 10px 0 6px;
  text-align: center;
  line-height: 1.2;
}

.dl-modal-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
  text-align: center;
  line-height: 1.5;
}

.dl-pick-grid {
  display: grid;
  gap: 14px;
}

.dl-pick-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  text-align: start;
  transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.dl-pick-btn:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.12);
}

.dl-pick-btn:first-child {
  border-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(34, 211, 238, 0.05));
}

.dl-pick-btn:first-child:hover {
  border-color: rgba(52, 211, 153, 0.55);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.14), rgba(34, 211, 238, 0.08));
}

.dl-pick-ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.dl-pick-main {
  display: block;
  font-weight: 800;
  font-size: 1.08rem;
}

.dl-pick-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}

.dl-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dl-modal-form label:not(.dl-modal-terms) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.dl-modal-form label:not(.dl-modal-terms) span {
  color: rgba(226, 232, 240, 0.92);
}

.dl-modal-form input[type="email"],
.dl-modal-form input[type="tel"],
.trial-modal-form input[type="email"],
.trial-modal-form input[type="tel"] {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 1.02rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dl-modal-form input:focus,
.trial-modal-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.dl-modal-terms,
.terms-modal {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  margin: 4px 0 8px;
  border-radius: 14px;
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.22);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.55;
  cursor: pointer;
  user-select: none;
}

.dl-modal-terms:hover,
.terms-modal:hover {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
}

.dl-modal-terms input[type="checkbox"],
.terms-modal input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
}

/* Hero CTA — full width, tall */
.dl-modal-cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 18px 28px !important;
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  border-radius: 16px !important;
  margin-top: 6px;
  letter-spacing: 0.02em;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.get-page .dl-modal .dl-modal-cta.btn-primary,
.trial-page .dl-modal .dl-modal-cta.btn-primary {
  box-shadow: var(--glow-red), 0 8px 28px rgba(239, 68, 68, 0.25);
}

.dl-modal-cta:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none !important;
}

.dl-modal-success {
  text-align: center;
  padding: 12px 4px 4px;
}

.dl-modal-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  background: rgba(52, 211, 153, 0.15);
  border: 2px solid rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 40px rgba(52, 211, 153, 0.2);
}

.dl-modal-success .dl-modal-cta {
  max-width: 280px;
  margin: 20px auto 0;
}

.dl-modal-email,
.trial-modal-email {
  color: var(--accent);
  font-size: 0.95rem;
  margin: 14px 0 6px;
  word-break: break-all;
}

.trial-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@keyframes dlFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dlModalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .dl-modal-card {
    padding: 28px 20px 22px;
    border-radius: 20px;
  }

  .dl-modal-cta {
    min-height: 54px;
    font-size: 1.05rem !important;
  }
}
