/* seo-report.css — grader page (free website grade → $9 report upsell).
 * Page-specific styles only; layout, forms, and buttons come from components.css.
 * External file because the site CSP is style-src 'self' (no inline styles). */

/* ---- Result panel ---- */
.grade-panel {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--sh-2);
  flex-wrap: wrap;
}

.grade-badge {
  flex: 0 0 auto;
  width: clamp(96px, 14vw, 132px);
  height: clamp(96px, 14vw, 132px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--white);
  background: var(--forest);
  border: 4px solid var(--line-2);
}

.grade-badge.grade-a { background: var(--ok); border-color: rgba(31, 122, 82, .35); }
.grade-badge.grade-b { background: var(--forest-2); border-color: rgba(36, 106, 85, .35); }
.grade-badge.grade-c { background: var(--warn); border-color: rgba(176, 125, 18, .35); }
.grade-badge.grade-d { background: #a05a1c; border-color: rgba(160, 90, 28, .35); }
.grade-badge.grade-f { background: var(--error); border-color: rgba(180, 69, 47, .35); }

.grade-meta { flex: 1 1 320px; min-width: 260px; }
.grade-meta h2 { margin: 0 0 6px; }
.grade-score { color: var(--muted); margin: 10px 0 0; font-weight: 600; }

/* ---- Check list ---- */
.check-list { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.check-item {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-4) var(--s-5);
}
.check-ic {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
}
.check-item[data-status="pass"] .check-ic { background: var(--ok-bg); color: var(--ok); }
.check-item[data-status="warn"] .check-ic { background: var(--warn-bg); color: var(--warn); }
.check-item[data-status="fail"] .check-ic { background: var(--error-bg); color: var(--error); }
.check-item[data-status="unknown"] .check-ic { background: var(--tint); color: var(--faint); }
.check-label { font-weight: 600; margin: 0; }
.check-detail { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }

/* ---- Upsell card on the result ---- */
.upsell-card {
  margin-top: var(--s-6);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--sh-1);
}
.upsell-card h3 { margin-top: 0; }
.upsell-card .btn { margin-top: var(--s-4); }

/* ---- Grader form loading state ---- */
.grader-form .btn[aria-busy="true"]::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: grader-spin 0.8s linear infinite;
}
@keyframes grader-spin { to { transform: rotate(360deg); } }

/* Turnstile widget breathing room inside the form card */
.grader-turnstile { margin: var(--s-2) 0 var(--s-4); min-height: 65px; }

/* ---- Report offers ($9 one-time / $14.99mo weekly / $29mo competitor watch) ---- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-6);
  align-items: stretch;
}
.offer-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--sh-1);
}
.offer-card--featured {
  border-color: var(--forest-2);
  box-shadow: var(--sh-2);
}
.offer-card h3 { margin: 0; }
.offer-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1;
}
.offer-per { font-size: 1rem; color: var(--muted); font-weight: 500; }
.offer-copy { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1 1 auto; }
.offer-card .btn { margin-top: auto; }
.offer-competitors { margin: 0; }
.offer-competitors label { font-size: 0.85rem; }
.buy-foot { margin-top: var(--s-6); }
.buy-turnstile-wrap { display: flex; justify-content: center; min-height: 65px; }
