/* SEO Audit Tool — values from Figma "SearchPie 2026" › SEO Audit (node 33243:15475) */

.sa-page {
  --sa-orange: #ff8b05;
  --sa-orange-cta: #f79009;
  --sa-ink: #101828;
  --sa-muted: #667085;
  --sa-brown: #29180d;
  --sa-critical: #d72c0d;
  --sa-border: #e4e7ec;
  --sa-row-border: #eef2f6;
  --sa-card-border: #eae1d6;
  --sa-good-bg: #cdfee1;
  --sa-good-text: #0c5132;
  --sa-good-ring: #29845a;
  --sa-warn-bg: #ffd6a4;
  --sa-warn-text: #5e4200;
  --sa-warn-ring: #fa8500;
  --sa-warn-surface: #fff2e2;

  font-family: 'Inter', sans-serif;
  color: var(--sa-ink);
  max-width: 1440px;
  margin: 0 auto;
  padding: 116px 40px 80px;
  box-sizing: border-box;
}
.sa-page *, .sa-page *::before, .sa-page *::after { box-sizing: border-box; }
.sa-page p, .sa-page h1, .sa-page h2, .sa-page h3 { margin: 0; }
.sa-page button { font-family: inherit; cursor: pointer; }
.sa-page [hidden] { display: none !important; }

/* ---------------------------------------------------------------- Hero */

.sa-hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  border-radius: 24px;
  background: var(--sa-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.sa-hero-bg { position: absolute; pointer-events: none; }
.sa-hero-grid { inset: 0; width: 100%; height: 100%; opacity: .62; object-fit: cover; }
.sa-hero-circuit { left: 8%; top: 70px; width: 84%; height: calc(100% - 92px); }
.sa-hero-anchors { left: 60px; top: 60px; width: calc(100% - 120px); height: calc(100% - 134px); }
.sa-hero-store { left: 90px; top: 294px; width: 106px; height: 146px; }
.sa-hero-connections { right: 76px; top: 274px; width: 144px; height: 185px; }

.sa-hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1140px;
}
.sa-hero-heading { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.sa-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid #6b2400; border-radius: 99px;
  background: #fff;
  font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--sa-brown);
}
.sa-hero-badge-free {
  padding: 1px 9px; border-radius: 99px;
  background: var(--sa-orange); color: #fff3e3;
  font-size: 12px;
}
.sa-hero-title {
  font-size: 76px; font-weight: 700; line-height: 1.2; letter-spacing: -1.4px; color: #fff;
}
.sa-hero-subtitle { font-size: 18px; line-height: 1.55; color: #fff; }

.sa-scan-card {
  width: 100%; max-width: 864px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
}
.sa-scan-label { font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--sa-brown); text-align: center; margin: 0; }
.sa-scan-row { display: flex; gap: 12px; width: 100%; height: 52px; }
.sa-scan-input {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 0 18px;
  border: 1px solid #946244; border-radius: 12px;
  background: #fff;
}
.sa-scan-input input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 15px; line-height: 1.4; color: var(--sa-brown);
}
.sa-scan-input input::placeholder { color: #71523c; }
.sa-scan-input:focus-within { border-color: var(--sa-orange); box-shadow: 0 0 0 3px rgba(255, 139, 5, .18); }
.sa-scan-button {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 60px; height: 52px; padding: 0 20px;
  border: 0; border-radius: 12px;
  background: var(--sa-orange); color: #fff;
  font-size: 14px; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.sa-scan-button:disabled { cursor: progress; }
.sa-scan-button .sa-spinner { display: none; }
.sa-scan-button.is-loading .sa-scan-button-text { display: none; }
.sa-scan-button.is-loading .sa-spinner { display: block; }
.sa-scan-error { width: 100%; font-size: 13px; line-height: 1.4; color: var(--sa-critical); }

.sa-spinner {
  width: 26px; height: 26px;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%;
  animation: sa-spin .8s linear infinite;
}
@keyframes sa-spin { to { transform: rotate(360deg); } }

.sa-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding-top: 8px; }
.sa-trust-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--sa-orange); border-radius: 35px;
  font-size: 13px; line-height: 1.4; color: #593018;
}
.sa-trust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 219, 177, .54);
}
.sa-trust-icon img { width: 26.667px; height: 26.667px; }

.sa-hero-stats {
  display: flex; justify-content: space-between; align-items: stretch;
  width: 100%; min-height: 66px; padding: 8px 48px 0;
}
.sa-stat { display: flex; flex-direction: column; gap: 8px; padding-right: 24px; }
.sa-stat + .sa-stat { border-left: 1px solid #ebebeb; padding-left: 24px; }
.sa-stat strong { font-size: 27px; font-weight: 700; line-height: normal; color: var(--sa-ink); }
.sa-stat span { font-size: 13px; color: var(--sa-muted); }

/* ------------------------------------------------------- Shopify banner */

.sa-shopify-banner {
  margin-top: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 88px; padding: 18px 22px;
  border: 1px solid #d3fadc; border-radius: 16px;
  background: #283510; color: #fff;
}
.sa-shopify-banner-copy { display: flex; align-items: center; gap: 14px; }
.sa-shopify-banner-logo {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 14px; background: #fff;
}
.sa-shopify-banner-title { font-size: 18px; font-weight: 700; padding: 2px 0; }
.sa-shopify-banner-text { font-size: 14px; padding-top: 5px; }
.sa-shopify-banner-button {
  flex: none;
  padding: 14px 20px 15px;
  border: 1px solid #a6f4c5; border-radius: 12px;
  background: #fff; color: #283510;
  font-size: 16px; font-weight: 700;
  cursor: default !important;
}

/* ------------------------------------------------------ Results section */

.sa-results { margin-top: 48px; }
.sa-section-heading { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-bottom: 24px; }
.sa-section-title { font-size: 28px; font-weight: 700; color: var(--sa-ink); }
.sa-section-subtitle { font-size: 14px; color: var(--sa-muted); }
.sa-scanning-title { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 600; color: var(--sa-ink); word-break: break-all; }
.sa-scanning-title img { flex: none; }

.sa-screenshot {
  position: relative;
  width: 100%; max-width: 980px; aspect-ratio: 980 / 497;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 15px;
  background: #f6f6f6;
}
.sa-screenshot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.sa-screenshot-skeleton, .sa-screenshot::after {
  position: absolute; inset: 0;
}
.sa-screenshot-skeleton {
  background: linear-gradient(100deg, #f6f6f6 30%, #ececec 50%, #f6f6f6 70%);
  background-size: 200% 100%;
  animation: sa-shimmer 1.4s linear infinite;
}
/* Scan line over the screenshot while the scan runs */
.sa-screenshot::after {
  content: '';
  height: 72px;
  background: linear-gradient(180deg, rgba(255, 139, 5, 0) 0%, rgba(255, 139, 5, .22) 100%);
  border-bottom: 2px solid var(--sa-orange);
  animation: sa-scanline 2.2s ease-in-out infinite;
}
@keyframes sa-shimmer { to { background-position: -200% 0; } }
@keyframes sa-scanline { 0% { transform: translateY(-72px); } 100% { transform: translateY(520px); } }

/* --------------------------------------------------------------- Report */

.sa-report {
  display: flex; flex-direction: column; gap: 38px;
  overflow: hidden;
  border: 1px solid #cfcfcf; border-radius: 20px;
  background: #fff;
}
.sa-report-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 40px 40px 0;
}
.sa-score { display: flex; align-items: center; gap: 28px; }
.sa-gauge { position: relative; flex: none; width: 120px; height: 120px; }
.sa-gauge svg { display: block; transform: rotate(-90deg); }
.sa-gauge-value {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; line-height: 36px; letter-spacing: -.2px;
}
.sa-score-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sa-score-title { font-size: 20px; font-weight: 700; color: var(--sa-ink); }
.sa-score-text { font-size: 14px; line-height: 20px; color: var(--sa-muted); white-space: pre-line; }
.sa-summary-stats { display: flex; align-self: stretch; align-items: center; gap: 48px; }
.sa-summary-stat { display: flex; flex-direction: column; gap: 8px; padding-left: 48px; border-left: 1px solid #ebebeb; min-height: 94px; justify-content: center; }
.sa-summary-stat strong { font-size: 27px; font-weight: 700; color: var(--sa-ink); }
.sa-summary-stat span { font-size: 13px; color: var(--sa-muted); white-space: nowrap; }

.sa-report-body { display: flex; flex-direction: column; gap: 24px; padding: 0 40px 40px; }

.sa-badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 20px; padding: 2px 8px; border-radius: 8px;
  font-size: 12px; font-weight: 550; line-height: 16px; white-space: nowrap;
}
.sa-badge--good { background: var(--sa-good-bg); color: var(--sa-good-text); }
.sa-badge--need_work { background: var(--sa-warn-bg); color: var(--sa-warn-text); }
.sa-badge--not_checked { background: #f1f1f1; color: #616161; }

/* Priority fixes */
.sa-priority { overflow: hidden; border: 1px solid var(--sa-critical); border-radius: 18px; }
.sa-priority-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px;
  background: var(--sa-critical); color: #fff;
}
.sa-priority-title { font-size: 18px; font-weight: 700; line-height: 28px; }
.sa-priority-text { font-size: 14px; padding-top: 4px; }
.sa-priority-button {
  flex: none;
  padding: 12px 20px;
  border: 1px solid #fda4af; border-radius: 10px;
  background: #fff; color: #e31b54;
  font-size: 13.3px; font-weight: 700;
}
.sa-priority-list { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.sa-priority-item {
  display: grid; grid-template-columns: 368px minmax(0, 330px) minmax(0, 265px); justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px;
  border: 1px solid var(--sa-card-border); border-radius: 12px;
  background: #fff;
}
.sa-priority-name { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 700; }
.sa-priority-icon {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 8px; background: #f5f5f5;
}
.sa-priority-col { display: flex; flex-direction: column; gap: 8px; padding-top: 1px; }
.sa-priority-col strong { font-size: 14px; font-weight: 700; }
.sa-priority-col span { font-size: 12px; line-height: 16.2px; color: var(--sa-muted); }

/* Category cards */
.sa-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sa-tab {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
  min-height: 98px; padding: 14px 16px;
  border: 1px solid #d0d5dd; border-radius: 12px;
  background: #fff; text-align: left;
}
.sa-tab:hover { border-color: #6b2400; }
.sa-tab.is-active { border: 2px solid #6b2400; background: #fff3e3; padding: 13px 15px; }
.sa-tab-label { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 13px; font-weight: 500; line-height: 18px; color: var(--sa-ink); }
.sa-tab.is-active .sa-tab-label { color: #6b2400; }
.sa-tab-label img { flex: none; }

/* Category panel */
.sa-panels { display: flex; flex-direction: column; gap: 20px; }
.sa-panel {
  overflow: hidden;
  border: 1px solid var(--sa-border); border-radius: 12px;
  background: #fff;
}
.sa-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; }
.sa-panel-title { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; }
.sa-panel-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; }
.sa-panel-list { padding: 0 24px; }
.sa-panel-list:last-child { padding-bottom: 8px; }
.sa-criterion { border-top: 1px solid var(--sa-row-border); }
.sa-criterion-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 52px; padding: 12px 0;
  border: 0; background: transparent; text-align: left;
}
.sa-criterion-name { flex: none; width: 330px; font-size: 13px; font-weight: 700; color: var(--sa-ink); }
.sa-criterion-summary { flex: 1; min-width: 0; font-size: 13px; line-height: 18.2px; color: var(--sa-muted); }
.sa-criterion-chevron { flex: none; transition: transform .15s; }
.sa-criterion.is-open .sa-criterion-chevron { transform: rotate(180deg); }
.sa-status-icon { flex: none; width: 28px; height: 28px; }
.sa-status-icon--empty { display: inline-block; border: 2px solid #c9c9c9; border-radius: 50%; transform: scale(.75); }

.sa-speed-action { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sa-speed-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 56px; height: 28px; padding: 0 12px;
  border: 0; border-radius: 8px;
  background: var(--sa-orange-cta); color: #fff;
  font-size: 13px; font-weight: 600;
}
.sa-speed-button .sa-spinner { width: 14px; height: 14px; }
.sa-speed-hint { font-size: 12px; color: var(--sa-muted); white-space: nowrap; }
.sa-speed-error { font-size: 12px; color: var(--sa-critical); }

.sa-criterion-detail { display: flex; flex-direction: column; gap: 12px; padding: 0 32px 12px 40px; }
.sa-detail-box { overflow: hidden; border: 1px solid var(--sa-card-border); border-radius: 12px; }
.sa-detail-head { display: flex; align-items: center; gap: 10px; padding: 16px; background: #eee; font-size: 13px; font-weight: 700; }
.sa-detail-body { display: flex; align-items: flex-start; gap: 8px; padding: 12px; font-size: 13px; line-height: 18.2px; color: var(--sa-muted); }
.sa-detail-body b { font-weight: 600; color: #393a3c; }
.sa-detail-body p { padding-top: 5px; }

.sa-panel-more {
  display: flex; align-items: center; gap: 6px;
  width: 100%; padding: 10px 24px;
  border: 0; background: #f5f5f5;
  font-size: 13px; font-weight: 600; color: var(--sa-ink); text-align: left;
}

/* Full audit CTA */
.sa-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px;
  border: 1px solid #ffb24c; border-radius: 12px;
  background: #fff3e3;
}
.sa-cta-copy { display: flex; align-items: center; gap: 16px; }
.sa-cta-copy img { flex: none; width: 107px; height: 70px; border-radius: 6px; object-fit: cover; }
.sa-cta-title { font-size: 18px; font-weight: 700; }
.sa-cta-text { font-size: 14px; line-height: 20px; color: var(--sa-muted); padding-top: 8px; }
.sa-cta-button {
  flex: none;
  display: inline-flex; align-items: center;
  height: 51px; padding: 0 20px; border-radius: 10px;
  background: var(--sa-orange-cta); color: #fff !important;
  font-size: 16px; font-weight: 800; text-decoration: none !important; white-space: nowrap;
}

/* ----------------------------------------------------------- Responsive */

@media (max-width: 1199px) {
  .sa-hero-store, .sa-hero-connections { display: none; }
  .sa-hero-title { font-size: 56px; }
  .sa-priority-item { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .sa-criterion-name { width: 240px; }
}

@media (max-width: 991px) {
  .sa-page { padding: 96px 16px 48px; }
  .sa-hero { min-height: 0; padding: 48px 16px; border-radius: 20px; }
  .sa-hero-circuit, .sa-hero-anchors { display: none; }
  .sa-hero-title { font-size: 40px; letter-spacing: -.6px; }
  .sa-hero-subtitle { font-size: 16px; }
  .sa-hero-stats { flex-wrap: wrap; padding: 8px 0 0; row-gap: 16px; }
  .sa-stat, .sa-stat + .sa-stat { width: 50%; border: 0; padding: 0 8px; align-items: center; text-align: center; }
  .sa-shopify-banner { flex-direction: column; align-items: flex-start; }
  .sa-report-summary { flex-direction: column; align-items: flex-start; padding: 24px 20px 0; }
  .sa-summary-stats { align-self: auto; gap: 24px; }
  .sa-summary-stat { padding-left: 0; border-left: 0; min-height: 0; }
  .sa-summary-stat + .sa-summary-stat { padding-left: 24px; border-left: 1px solid #ebebeb; }
  .sa-report-body { padding: 0 20px 24px; }
  .sa-priority-head { flex-direction: column; align-items: flex-start; }
  .sa-priority-item { grid-template-columns: 1fr; }
  .sa-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-panel-head, .sa-panel-list { padding-left: 16px; padding-right: 16px; }
  .sa-criterion-row { flex-wrap: wrap; }
  .sa-criterion-name { width: auto; flex: 1; }
  .sa-criterion-summary { flex-basis: 100%; order: 5; padding-left: 40px; }
  .sa-criterion-detail { padding: 0 0 12px; }
  .sa-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575px) {
  .sa-hero-title { font-size: 32px; }
  .sa-scan-row { flex-direction: column; height: auto; }
  .sa-scan-input, .sa-scan-button { flex: none; height: 52px; }
  .sa-score { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sa-cta-copy { flex-direction: column; align-items: flex-start; }
}
