/* Free security scan. The scan script and the result markup are unchanged; this file gives them the
   landing design. Tokens live in landing.css. */

/* Hero: the address bar */
.lp .w-scan-hero { padding-bottom: 96px; }
.lp .w-scan-hero .w-hero-lead { margin-inline: auto; }

.lp .w-scan-form {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  margin: 36px auto 0;
  padding: 8px;
  padding-inline-start: 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7);
}

.lp .w-scan-form:focus-within { box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7), 0 0 0 3px var(--rose); }
.lp .w-scan-form > i { flex: none; color: var(--mute); }

.lp .w-scan-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  outline: none;
}

.lp .w-scan-form input::placeholder { font-weight: 400; color: #a798a2; }
.lp .w-scan-form .w-btn { flex: none; min-height: 48px; padding: 0 24px; }

/* Results */
.lp .scan-results-section { padding: 72px 0; background: var(--blush); }

/* Progress and score rings */
.lp .loading-circle,
.lp .score-circle { position: relative; flex: none; width: 170px; height: 170px; }

.lp .loading-circle { margin: 0 auto 18px; }
.lp .loading-circle svg,
.lp .score-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.lp .loading-bg,
.lp .score-bg { fill: none; stroke: var(--line); stroke-width: 8; }

.lp .loading-progress,
.lp .score-progress {
  fill: none;
  stroke: var(--magenta);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.4s ease;
}

.lp .loading-value,
.lp .score-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 52px;
  direction: ltr;
}

.lp .loading-value span,
.lp .score-value span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  color: var(--ink);
}

.lp .loading-value small,
.lp .score-value small { margin-inline-start: 2px; font-size: 1rem; font-weight: 700; color: var(--mute); }

.lp .scan-loading { text-align: center; }

.lp .scan-loading h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  direction: ltr;
}

.lp .loading-status { margin-top: 6px; color: var(--mute); }

/* The overall score */
.lp .score-card {
  align-items: center;
  gap: 36px;
  max-width: 980px;
  margin: 0 auto 24px;
  padding: 28px 34px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 24px 50px -30px rgba(26, 11, 30, 0.45);
}

.lp .score-info h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--ink);
  direction: ltr;
  text-align: right;
  word-break: break-all;
}

.lp .score-label { margin-top: 8px; font-size: 1.15rem; font-weight: 700; color: var(--mute); }
.lp .score-label.excellent { color: #3f6b16; }
.lp .score-label.good { color: #5a8f1e; }
.lp .score-label.fair { color: #a86a00; }
.lp .score-label.poor { color: #b42328; }
.lp .scan-time { margin-top: 8px; font-size: 0.88rem; color: var(--mute); }
.lp .scan-time i { margin-inline-end: 4px; }

/* One card per check */
.lp .checks-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.lp .checks-grid.show { animation: w-rise 0.5s ease; }

@keyframes w-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lp .checks-grid.show { animation: none; }
}

.lp .check-card { padding: 20px 22px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.lp .check-header { display: flex; align-items: center; gap: 14px; }

.lp .check-icon {
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--blush);
  color: var(--magenta);
}

.lp .check-title { flex: 1; min-width: 0; }
.lp .check-title h3 { margin: 0; font-family: var(--body); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.lp .check-status { font-size: 0.85rem; font-weight: 700; color: var(--mute); }
.lp .check-status.pass { color: #3f6b16; }
.lp .check-status.warning { color: #a86a00; }
.lp .check-status.fail { color: #b42328; }

.lp .check-score {
  flex: none;
  min-width: 54px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blush);
  font-weight: 700;
  color: var(--mute);
  text-align: center;
}

.lp .check-score.pass { background: #edf5e2; color: #2f5410; }
.lp .check-score.warning { background: #fdf3dc; color: #8a5a00; }
.lp .check-score.fail { background: #fde8e8; color: #b42328; }

.lp .check-details { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule); font-size: 0.9rem; }
.lp .check-details p { color: var(--mute); }
.lp .check-details li { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; }
.lp .check-details i { width: 14px; flex: none; font-size: 0.8rem; text-align: center; }
.lp .check-details .fa-check { color: #3f6b16; }
.lp .check-details .fa-times { color: #b42328; }
.lp .check-details .fa-exclamation-triangle { color: #a86a00; }

.lp .check-info {
  margin-inline-start: 6px;
  padding: 2px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--blush);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--magenta);
  vertical-align: middle;
  cursor: pointer;
}

/* After the scan: the PDF and the offer */
.lp .download-report { margin-top: 28px; text-align: center; }

.lp .btn-download-report {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.lp .btn-download-report:hover { background: var(--ink); color: #fff; }

.lp .scan-cta { max-width: 980px; margin: 28px auto 0; }

.lp .scan-cta-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  border-radius: 20px;
  background: var(--plum);
  color: #fff;
}

.lp .scan-cta-icon {
  display: grid;
  flex: none;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--magenta);
  font-size: 1.4rem;
}

.lp .scan-cta-text { flex: 1; }
.lp .scan-cta-text h3 { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; color: #fff; }
.lp .scan-cta-text p { margin-top: 6px; color: rgba(255, 255, 255, 0.78); }
.lp .scan-cta .w-btn { flex: none; }

/* What DNSSEC is */
.lp .modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(26, 11, 30, 0.65);
}

.lp .modal-overlay.show { display: grid; }

/* style.css hides any .modal-overlay until it gets .active; this page's script uses .show */
.lp .modal-overlay.show { opacity: 1; visibility: visible; }

body:has(#dnssecModal.show) [class*="elfsight-app"],
body:has(#dnssecModal.show) [class*="eapps-widget"],
body:has(#dnssecModal.show) #__EAAPS_PORTAL { display: none !important; }

.lp .modal-content {
  position: relative;
  width: min(100%, 640px);
  max-width: none;
  transform: none;
  text-align: right;
  max-height: 85vh;
  overflow: auto;
  padding: 30px 30px 26px;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
}

.lp .modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--blush);
  color: var(--ink);
  cursor: pointer;
}

.lp .modal-header { display: flex; align-items: center; gap: 12px; padding-inline-end: 40px; }

.lp .modal-icon {
  display: grid;
  flex: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--plum);
  color: var(--rose);
}

.lp .modal-icon { margin: 0; }
.lp .modal-icon i { font-size: 1.2rem; color: var(--rose); }
.lp .modal-close:hover { background: var(--ink); color: #fff; }
.lp .modal-header h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.lp .modal-body h3 { margin: 20px 0 0; font-family: var(--body); font-size: 1.05rem; font-weight: 700; color: var(--ink); text-align: right; }
.lp .modal-body h3 i { margin-inline-end: 6px; color: var(--magenta); }
.lp .modal-body p { margin-top: 8px; line-height: 1.7; color: #3f2c43; }
.lp .modal-intro { margin-top: 16px; }
.lp .modal-body ul { margin-top: 8px; }
.lp .modal-body li { position: relative; padding: 3px 0; padding-inline-start: 18px; color: #3f2c43; }

.lp .modal-body li::before {
  content: '';
  position: absolute;
  top: 0.75em;
  inset-inline-start: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
}

.lp .modal-tip {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #edf5e2;
  font-weight: 600;
  color: #2f5410;
}

@media (max-width: 760px) {
  .lp .checks-grid { grid-template-columns: minmax(0, 1fr); }
  .lp .score-card { flex-direction: column; gap: 18px; padding: 24px 20px; text-align: center; }
  .lp .score-info h2 { text-align: center; }
  .lp .scan-cta-content { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .lp .w-scan-form { padding-inline-start: 12px; }
  .lp .w-scan-form input { font-size: 1.05rem; }
  .lp .w-scan-form .w-btn { padding: 0 16px; }
  .lp .score-info h2 { font-size: 2.2rem; }
}
