@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.88;
  transform: none;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

.results-modal {
  width: min(760px, calc(100% - 28px));
  max-width: 760px;
  max-height: min(90vh, 900px);
  padding: 0;
  overflow: auto;
  border: 1px solid #e6ece7;
  border-radius: 18px;
  color: var(--ink);
  background: #fbfcfb;
  box-shadow: 0 28px 90px rgba(19, 46, 34, 0.24);
}

.results-modal::backdrop {
  background: rgba(20, 34, 29, 0.52);
  backdrop-filter: blur(5px);
}

.modal-content {
  padding: 30px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.modal-eyebrow {
  margin: 0 0 8px;
  color: #56846c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.25px;
}

.modal-eyebrow span {
  margin-right: 4px;
}

.modal-header h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}

.modal-site {
  margin: 5px 0 0;
  color: #7f8983;
  font-size: 12px;
}

.modal-icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e5ebe6;
  border-radius: 9px;
  color: #6d7972;
  background: white;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  transition: background 150ms ease, color 150ms ease;
}

.modal-icon-button:hover {
  color: var(--ink);
  background: #f0f5f1;
}

.result-score {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 17px;
  border: 1px solid #e4eee6;
  border-radius: 13px;
  background: linear-gradient(110deg, #f0f7f1, #f8faf7);
}

.score-ring {
  display: flex;
  width: 69px;
  height: 69px;
  flex: 0 0 auto;
  align-items: baseline;
  justify-content: center;
  padding-top: 20px;
  border: 5px solid #6aaa83;
  border-right-color: #d7e8da;
  border-radius: 50%;
  color: #215d43;
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -1px;
  transform: rotate(-35deg);
}

.score-ring > * {
  transform: rotate(35deg);
}

.score-ring small {
  margin-left: 2px;
  color: #8a9d8f;
  font-family: "DM Sans", sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0;
}

.result-label {
  margin: 0 0 4px;
  color: #66806e;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.05px;
}

.result-score h3 {
  margin: 0;
  color: #26382e;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.result-description {
  margin: 4px 0 0;
  color: #7b8780;
  font-size: 11px;
  line-height: 1.5;
}

.modal-section {
  margin-top: 22px;
}

.modal-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #293730;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.section-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
}

.summary-icon {
  color: #448262;
  background: #e8f4e9;
}

.fixes-icon {
  color: #a27534;
  background: #f9f0dc;
}

.posts-icon {
  color: #716f9d;
  background: #f0effa;
}

.result-list {
  display: grid;
  gap: 9px;
  margin: 11px 0 0;
  padding: 0;
  color: #626f67;
  font-size: 11px;
  line-height: 1.55;
}

.summary-list {
  list-style: none;
}

.summary-list li {
  position: relative;
  padding-left: 16px;
}

.summary-list li::before {
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #66a280;
  content: "";
}

.fixes-list {
  padding-left: 21px;
  counter-reset: fixes;
  list-style: none;
}

.fixes-list li {
  position: relative;
  min-height: 18px;
  counter-increment: fixes;
}

.fixes-list li::before {
  position: absolute;
  left: -21px;
  color: #a77d3d;
  content: counter(fixes, decimal-leading-zero);
  font-size: 9px;
  font-weight: 700;
}

.posts-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.post-count {
  color: #9aa39d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.post-list {
  display: grid;
  gap: 9px;
  margin-top: 11px;
}

.post-card {
  padding: 12px 13px;
  border: 1px solid #e9ede9;
  border-radius: 10px;
  background: white;
}

.post-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.post-card h3 {
  margin: 0;
  color: #435149;
  font-size: 10px;
  font-weight: 700;
}

.copy-button {
  padding: 5px 9px;
  border: 1px solid #dfeae1;
  border-radius: 6px;
  color: #327653;
  background: #f4f9f4;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  transition: background 150ms ease, border-color 150ms ease;
}

.copy-button:hover {
  border-color: #c1dcc7;
  background: #eaf5ec;
}

.post-text {
  margin: 8px 0 0;
  color: #68746d;
  font-size: 10px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.copy-message,
.premium-message {
  min-height: 0;
  margin: 6px 0 0;
  color: #47785b;
  font-size: 10px;
  text-align: center;
}

.free-version-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
  padding: 9px;
  border: 1px solid #e7ece8;
  border-radius: 8px;
  color: #707b74;
  background: #f6f8f6;
  font-size: 10px;
  font-weight: 600;
}

.free-version-note span {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  color: #62806d;
  background: #e4eee5;
  font-family: Georgia, serif;
  font-size: 9px;
  font-style: italic;
}

.premium-action {
  display: grid;
  justify-items: center;
  margin-top: 12px;
}

.premium-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: var(--green);
  box-shadow: 0 7px 16px rgba(27, 118, 94, 0.17);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease;
}

.premium-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.premium-button span {
  font-size: 16px;
  font-weight: 400;
}

.modal-close-link {
  margin-top: 9px;
  padding: 4px;
  border: 0;
  color: #78847c;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
}

.modal-close-link:hover {
  color: #34483b;
  text-decoration: underline;
}

.demo-disclaimer {
  margin: 13px 0 0;
  color: #9ba49e;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.modal-icon-button:focus-visible,
.copy-button:focus-visible,
.premium-button:focus-visible,
.modal-close-link:focus-visible {
  outline: 3px solid rgba(27, 118, 94, 0.35);
  outline-offset: 2px;
}

@media (max-width: 500px) {
  .modal-content {
    padding: 22px 18px;
  }

  .modal-header h2 {
    font-size: 22px;
  }

  .result-score {
    gap: 12px;
    padding: 13px;
  }

  .score-ring {
    width: 61px;
    height: 61px;
    padding-top: 16px;
    font-size: 19px;
  }

  .result-score h3 {
    font-size: 12px;
  }

  .result-description {
    font-size: 10px;
  }
}

