/* ─── SEO Check Badge ───────────────────────────────────────── */
.seo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-pri);
  transition: gap 0.3s ease, color 0.2s ease;
}
.seo-badge:hover {
  gap: 0.85rem;
  color: var(--accent);
}
.seo-badge-arrow {
  color: var(--accent);
}

/* Hero wrapper — services page */
.seo-badge-wrap {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  z-index: 2;
}

/* ─── Overlay ───────────────────────────────────────────────── */
.seo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.seo-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ─── Modal card ────────────────────────────────────────────── */
.seo-modal {
  background: #111;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.34,1.15,0.64,1);
}
.seo-overlay.is-open .seo-modal {
  transform: translateY(0) scale(1);
}
.seo-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.10);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sec, #888);
  font-size: 1rem;
  line-height: 1;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.seo-modal-close:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

/* ─── Steps ─────────────────────────────────────────────────── */
.seo-step { display: none; }
.seo-step.is-active {
  display: block;
  animation: seo-fadein 0.22s ease;
}
@keyframes seo-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Shared typography ─────────────────────────────────────── */
.seo-eyebrow {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E05F18;
  margin-bottom: 0.6rem;
}
.seo-modal h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.seo-modal > .seo-step > p,
.seo-step-desc {
  font-size: 0.90rem;
  color: var(--text-sec, #888);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 440px;
}

/* ─── Step 1 — input ────────────────────────────────────────── */
.seo-input-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.seo-url-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 10px;
  padding: 0.82rem 1rem;
  font-size: 0.88rem;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.seo-url-input::placeholder { color: rgba(255,255,255,0.28); }
.seo-url-input:focus        { border-color: rgba(224,95,24,0.55); }
.seo-run-btn {
  background: #E05F18;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.82rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.seo-run-btn:hover    { background: #c95214; transform: translateY(-1px); }
.seo-run-btn:disabled { opacity: 0.45; pointer-events: none; }
.seo-error {
  font-size: 0.80rem;
  color: #ff4e42;
  margin-top: 0.55rem;
  display: none;
}
.seo-error.is-visible { display: block; }

/* ─── Step 2 — loading ──────────────────────────────────────── */
.seo-loading-wrap {
  text-align: center;
  padding: 2.5rem 0 1rem;
}
.seo-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255,255,255,0.07);
  border-top-color: #E05F18;
  border-radius: 50%;
  animation: seo-spin 0.75s linear infinite;
  margin: 0 auto 1.5rem;
}
@keyframes seo-spin { to { transform: rotate(360deg); } }
.seo-loading-msg {
  font-size: 0.88rem;
  color: var(--text-sec, #888);
  min-height: 1.4em;
  transition: opacity 0.25s;
}
.seo-progress-bar {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-top: 1.75rem;
  overflow: hidden;
}
.seo-progress-fill {
  height: 100%;
  background: #E05F18;
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease;
}

/* ─── Step 3 — results ──────────────────────────────────────── */
.seo-result-domain {
  font-size: 0.80rem;
  color: var(--text-sec, #888);
  margin-bottom: 0.25rem;
  word-break: break-all;
}
.seo-scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.seo-score-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1rem 0.4rem 0.85rem;
  text-align: center;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
}
.seo-score-card.is-visible {
  animation: seo-card-in 0.45s cubic-bezier(0.34, 1.5, 0.64, 1) forwards;
}
@keyframes seo-card-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.seo-score-num {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.seo-score-name {
  font-size: 0.64rem;
  color: var(--text-sec, #888);
  letter-spacing: 0.02em;
}
.seo-issues-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-sec, #888);
  margin-bottom: 0.65rem;
}
.seo-issues {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}
.seo-issue {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}
.seo-issue-icon  { font-size: 0.85rem; flex-shrink: 0; margin-top: 2px; }
.seo-issue-title { font-size: 0.84rem; font-weight: 500; color: #fff; }
.seo-issue-desc  { font-size: 0.76rem; color: var(--text-sec, #888); margin-top: 0.12rem; line-height: 1.45; }
.seo-all-good {
  background: rgba(12,206,107,0.07);
  border: 1px solid rgba(12,206,107,0.18);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 0.86rem;
  color: #0cce6b;
  font-weight: 500;
  margin-bottom: 1.75rem;
}
.seo-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(224,95,24,0.07);
  border: 1px solid rgba(224,95,24,0.18);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}
.seo-cta-msg {
  font-size: 0.86rem;
  color: #fff;
  font-weight: 500;
}
.seo-cta-link {
  background: #E05F18;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.58rem 1rem;
  font-size: 0.80rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.seo-cta-link:hover { background: #c95214; }

/* ─── Accordions ────────────────────────────────────────────── */
.seo-accordions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.seo-acc {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.seo-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.seo-acc-head:hover { background: rgba(255,255,255,0.03); }
.seo-acc-head-left  { display: flex; flex-direction: column; gap: 0.15rem; }
.seo-acc-label      { font-size: 0.88rem; font-weight: 600; color: #fff; }
.seo-acc-sub        { font-size: 0.72rem; color: var(--text-sec, #888); line-height: 1.4; }
.seo-acc-head-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.seo-acc-count {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.seo-acc-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-sec, #888);
  flex-shrink: 0;
  transition: transform 0.22s ease;
}
.seo-acc.is-open .seo-acc-chevron { transform: rotate(180deg); }

.seo-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.seo-acc.is-open .seo-acc-body { grid-template-rows: 1fr; }
.seo-acc-inner {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.seo-acc-empty {
  padding: 0.75rem 1.1rem;
  font-size: 0.80rem;
  color: var(--text-sec, #888);
}

/* Individual audit rows */
.seo-audit-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.seo-audit-row:last-child { border-bottom: none; }
.seo-audit-icon  { font-size: 0.80rem; flex-shrink: 0; margin-top: 3px; }
.seo-audit-body  { min-width: 0; }
.seo-audit-title {
  font-size: 0.83rem;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.seo-audit-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffa400;
  font-variant-numeric: tabular-nums;
}
.seo-audit-desc {
  font-size: 0.76rem;
  color: var(--text-sec, #888);
  line-height: 1.5;
  margin-top: 0.2rem;
}
.seo-audit-desc a { color: #E05F18; text-underline-offset: 2px; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 540px) {
  .seo-scores      { grid-template-columns: repeat(2, 1fr); }
  .seo-input-row   { flex-direction: column; }
  .seo-modal       { padding: 1.75rem 1.25rem; }
  .seo-badge-wrap  { bottom: 1.5rem; right: 1.5rem; }
  .seo-cta-bar     { flex-direction: column; align-items: flex-start; }
}
