/* Site Inspector — page-scoped styles. Loaded after the shared /styles.css,
   which supplies the header/nav/footer chrome, design tokens (--bg, --border,
   --accent, --muted, --surface, etc.) and the shared contact-form styles
   (.contact-card/.field/.field-row/.hp/.form-msg). Everything below is
   specific to the inspector tool UI and uses its own page-scoped tokens
   (prefixed --insp-) plus a distinct indigo accent for interactive controls,
   so it never overrides the shared chrome's look. */

*, *::before, *::after {
  margin: 0;
  padding: 0;
}

:root {
  --insp-surface: #ffffff;
  --insp-ink: #3c2d21;
  --insp-ink2: #5b4a3b;
  --insp-muted: #8a7d6f;
  --insp-bd2: rgba(125, 94, 61, 0.28);
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --insp-r: 14px;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.mono {
  font-family: "SFMono-Regular", Consolas, monospace;
}

/* Hero */
.tool-hero {
  padding: 40px 0 20px;
}
.tool-hero .eyebrow {
  margin-bottom: 12px;
}
.tool-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 760px;
}
.tool-hero .lead {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--insp-ink2);
  max-width: 680px;
  margin: 0 0 8px;
}

/* Form */
.form-bar {
  display: flex;
  gap: 10px;
  margin: 26px 0 12px;
}
.form-bar input {
  flex: 1;
  height: 54px;
  padding: 0 18px;
  border: 1.5px solid var(--insp-bd2);
  border-radius: var(--insp-r);
  background: var(--insp-surface);
  font-size: 16px;
  color: var(--insp-ink);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-bar input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 26px;
  background: var(--indigo);
  color: #fff;
  border: none;
  border-radius: var(--insp-r);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover {
  background: var(--indigo-dark);
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}
.btn-ghost {
  background: var(--insp-surface);
  color: var(--insp-ink);
  border: 1.5px solid var(--insp-bd2);
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--indigo);
  color: var(--indigo-dark);
}
.btn-accent {
  background: var(--accent);
}
.btn-accent:hover {
  background: #6f5030;
}
.hint {
  font-size: 13px;
  color: var(--insp-muted);
}
.hint a {
  color: var(--indigo-dark);
  font-weight: 600;
}

/* Loading / error */
.notice {
  padding: 14px 18px;
  border-radius: var(--insp-r);
  font-size: 14px;
  margin: 8px 0 0;
}
.notice-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.loading {
  display: none;
  align-items: center;
  gap: 12px;
  color: var(--insp-muted);
  font-size: 14px;
  padding: 24px 0;
}
.loading.on {
  display: flex;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--indigo);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Results */
#results {
  display: none;
  margin-top: 28px;
}
.result-meta {
  font-size: 13px;
  color: var(--insp-muted);
  margin-bottom: 16px;
}
.result-meta a {
  color: var(--indigo-dark);
  word-break: break-all;
}
.spa-notice {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: var(--insp-r);
  margin-bottom: 18px;
  font-size: 13.5px;
  color: #4c1d95;
  line-height: 1.55;
}
.spa-notice a {
  color: #6d28d9;
  font-weight: 600;
  text-decoration: underline;
}

/* Score */
.score-card {
  background: var(--insp-surface);
  border: 1px solid var(--border);
  border-radius: var(--insp-r);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(124, 98, 70, 0.08);
}
.score-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.score-num {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}
.score-num small {
  font-size: 18px;
  font-weight: 500;
  color: var(--insp-muted);
}
.tier-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 7px;
  border: 2px solid;
}
.score-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.score-bar > div {
  height: 8px;
  border-radius: 4px;
}
.score-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.score-row .lbl {
  flex: 1;
  color: var(--insp-ink2);
}
.score-row .pts {
  font-family: monospace;
  font-size: 12px;
  color: var(--insp-muted);
}
.score-tips {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.tip {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  color: var(--insp-muted);
  line-height: 1.45;
}
.tip .m {
  color: #dc2626;
  font-weight: 700;
  flex-shrink: 0;
}

/* Summary strip */
.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.stat {
  background: var(--insp-surface);
  border: 1px solid var(--border);
  border-radius: var(--insp-r);
  padding: 16px;
}
.stat .k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--insp-muted);
  margin-bottom: 9px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 6px;
  text-transform: uppercase;
}
.b-indigo {
  background: #eef2ff;
  color: #4338ca;
}
.b-violet {
  background: #f5f3ff;
  color: #6d28d9;
}
.b-green {
  background: #f0fdf4;
  color: #15803d;
}
.b-amber {
  background: #fffbeb;
  color: #b45309;
}
.b-gray {
  background: #f3f4f6;
  color: #6b7280;
}
.stat .sub {
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--insp-muted);
  font-family: monospace;
  word-break: break-all;
}

/* Detail cards */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.card {
  background: var(--insp-surface);
  border: 1px solid var(--border);
  border-radius: var(--insp-r);
  padding: 20px;
}
.card h3 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--insp-muted);
  margin-bottom: 12px;
}
.drow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.drow:last-child {
  border-bottom: none;
}
.drow .dk {
  color: var(--insp-muted);
  flex-shrink: 0;
}
.drow .dv {
  color: var(--insp-ink2);
  text-align: right;
  word-break: break-word;
}
.drow .dv em {
  color: var(--insp-muted);
  font-style: normal;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.chip {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #eef2ff;
  color: #4338ca;
}
.none {
  font-size: 13px;
  color: var(--insp-muted);
  font-style: italic;
}
.tag-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.tag-row:last-child {
  border-bottom: none;
}
.tag-row .nm {
  font-size: 13px;
  font-weight: 600;
  color: var(--insp-ink2);
}
.tag-row .ss {
  text-align: right;
}
.tag-ss-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 3px;
}
.tag-note {
  font-size: 11.5px;
  color: var(--insp-muted);
}
.bp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.bp-table th {
  text-align: left;
  padding: 8px 10px;
  background: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--insp-muted);
  border-bottom: 1.5px solid var(--insp-bd2);
}
.bp-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--insp-ink2);
}
.bp-table code {
  background: #f3f4f6;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12px;
}

/* Sections */
.tool-block {
  padding: 46px 0;
  border-top: 1px solid var(--border);
}
.tool-block .section-label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.tool-block h2 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.tool-block h2.center,
.tool-block .center {
  text-align: center;
}
.section-intro {
  font-size: 16px;
  color: var(--insp-ink2);
  max-width: 680px;
  margin: 0 0 26px;
}
.tool-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--insp-surface);
  border: 1px solid var(--border);
  border-radius: var(--insp-r);
  padding: 22px;
}
.feature .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--indigo-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.feature h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}
.feature p {
  font-size: 14px;
  color: var(--insp-ink2);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--insp-surface);
  border: 1px solid var(--border);
  border-radius: var(--insp-r);
  padding: 22px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--indigo);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 12px;
}
.step h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 5px;
}
.step p {
  font-size: 13.5px;
  color: var(--insp-ink2);
}

/* Services */
.svc-hero {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #ece9ff;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 26px;
}
.svc-hero h2 {
  color: #fff;
}
.svc-hero p {
  color: #c7c3f0;
  max-width: 600px;
  margin: 0 0 22px;
  font-size: 16px;
}
.svc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 26px;
}
.svc-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
}
.svc-list .tick {
  color: #a5b4fc;
  flex-shrink: 0;
  font-weight: 800;
}
.svc-list strong {
  color: #fff;
}
.svc-list span.d {
  color: #c7c3f0;
}

/* Extension */
.ext {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--insp-surface);
  border: 1px solid var(--border);
  border-radius: var(--insp-r);
  padding: 26px;
}
.ext .body {
  flex: 1;
  min-width: 240px;
}
.ext h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 6px;
}
.ext p {
  font-size: 14.5px;
  color: var(--insp-ink2);
}
.ext .steps-inline {
  font-size: 12.5px;
  color: var(--insp-muted);
  margin-top: 10px;
}

/* FAQ */
.faq details {
  background: var(--insp-surface);
  border: 1px solid var(--border);
  border-radius: var(--insp-r);
  padding: 4px 20px;
  margin-bottom: 10px;
}
.faq summary {
  font-size: 16px;
  font-weight: 700;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details p {
  font-size: 14.5px;
  color: var(--insp-ink2);
  padding: 0 0 18px;
}

#contact {
  scroll-margin-top: 20px;
}

@media (max-width: 760px) {
  .summary {
    grid-template-columns: 1fr 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .score-cats,
  .score-tips {
    grid-template-columns: 1fr;
  }
  .svc-hero {
    padding: 28px;
  }
}
@media (max-width: 520px) {
  .form-bar {
    flex-direction: column;
  }
  .form-bar .btn {
    height: 50px;
  }
}
