/* SEO Checker. Score rings follow the traffic-light rule used for every SEO score
   in the product: green when it is good, amber when it needs work, red when it
   is poor. The brand gradient is kept for buttons and accents only. */

/* The checker runs inside the dashboard and on the public site, which share no
   stylesheet, so it carries its own tokens, card, buttons and inputs. */
.sc-root { --sc-ink: #111827; --sc-muted: #6b7280; --sc-dim: #6b7280; --sc-border: #e8eaee; color: var(--sc-ink); font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.5; text-align: left; }
.sc-root *, .sc-root *::before, .sc-root *::after { box-sizing: border-box; }
.sc-card { background: #fff; border: 1px solid var(--sc-border); border-radius: 20px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05); padding: 22px 24px; margin-bottom: 18px; }
.sc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: 600 14px 'Inter', sans-serif; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.sc-btn:hover { transform: translateY(-1px); }
.sc-btn:disabled { opacity: .55; cursor: wait; transform: none; }
.sc-btn-primary { background: #111114; color: #fff; box-shadow: 0 8px 20px rgba(17, 17, 20, .18); }
.sc-btn-primary:hover { background: #000; }
.sc-btn-outline { background: #fff; color: var(--sc-ink); border-color: #dcdfe5; }
.sc-btn-outline:hover { border-color: #111114; }
.sc-btn-brand { background: linear-gradient(135deg, #ff6132, #ff2461); color: #fff; box-shadow: 0 8px 22px rgba(255, 36, 97, .28); }
.sc-input { width: 100%; border: 1px solid #dcdfe5; border-radius: 12px; background: #fff; padding: 0 16px; font: 400 15px 'Inter', sans-serif; color: var(--sc-ink); transition: border-color .15s, box-shadow .15s; }
.sc-input::placeholder { color: #9ca3af; }
.sc-input:focus { outline: none; border-color: #ff4d43; box-shadow: 0 0 0 4px rgba(255, 77, 67, .12); }
.sc-alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; line-height: 1.55; background: #fdecec; color: #b91c1c; border: 1px solid #f6c6c6; }
.sc-signup { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; background: linear-gradient(135deg, #fff3f1, #fff); border-color: #ffdcd8; }
.sc-signup h3 { margin: 0; font-family: 'Outfit', sans-serif; font-size: 20px; letter-spacing: -.01em; }
.sc-signup p { margin: 4px 0 0; color: var(--sc-muted); font-size: 14px; max-width: 520px; }
.sc-signup .sc-btn { height: 46px; padding: 0 24px; }
.sc-h { font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.sc-h-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.sc-sub-h { font-size: 12.5px; color: var(--sc-muted); }
.sc-n { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 6px; border-radius: 999px; background: #fdecec; color: #dc2626; font: 600 12px/1.6 'Inter', sans-serif; text-align: center; vertical-align: 2px; }
.sc-empty { color: var(--sc-muted); font-size: 13.5px; margin: 6px 0 0; }

/* Form */
.sc-form { padding: 20px 22px 18px; }
.sc-modes { display: inline-flex; gap: 4px; padding: 4px; background: #f1f2f5; border-radius: 12px; margin-bottom: 16px; }
.sc-mode { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0; border-radius: 9px; background: none; font: 600 13.5px 'Inter', sans-serif; color: var(--sc-muted); cursor: pointer; transition: background .15s, color .15s; }
.sc-mode:hover { color: var(--sc-ink); }
.sc-mode.on { background: #fff; color: var(--sc-ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.sc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sc-url { flex: 1 1 340px; min-width: 0; height: 48px; font-size: 15px; }
.sc-kw { flex: 0 1 230px; height: 48px; }
.sc-run { height: 48px; padding: 0 26px; font-size: 14.5px; white-space: nowrap; }
.sc-kw { height: 48px; }
.sc-sub { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--sc-muted); }
.sc-chip { margin-left: 6px; padding: 3px 11px; border: 1px solid var(--sc-border); border-radius: 999px; background: #fff; font: 500 12px 'Inter', sans-serif; color: var(--sc-ink); cursor: pointer; }
.sc-chip:hover { border-color: #ff6132; color: #e8323f; }

/* Progress */
.sc-progress { padding: 22px 24px; }
.sc-progress-head { display: flex; align-items: center; gap: 12px; font-size: 15px; margin-bottom: 14px; }
.sc-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #e5e7eb; border-top-color: #ff4d43; animation: sc-spin .8s linear infinite; flex: 0 0 auto; }
@keyframes sc-spin { to { transform: rotate(360deg); } }
.sc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sc-steps li { position: relative; padding-left: 28px; font-size: 13.5px; color: var(--sc-dim); transition: color .2s; }
.sc-steps li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #d5d8de; background: #fff; }
.sc-steps li.now { color: var(--sc-ink); font-weight: 600; }
.sc-steps li.now::before { border-color: #ff4d43; box-shadow: 0 0 0 4px rgba(255, 77, 67, .15); }
.sc-steps li.done { color: var(--sc-muted); }
.sc-steps li.done::before { background: #10b981; border-color: #10b981; }

/* Rings */
.sc-ring { --c: #10b981; position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #e8ebef 0); flex: 0 0 auto; }
.sc-ring.ok { --c: #f59e0b; }
.sc-ring.bad { --c: #ef4444; }
.sc-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.sc-ring span { position: relative; font: 700 17px 'Outfit', sans-serif; color: #111827; }
.sc-ring.big { width: 132px; height: 132px; }
.sc-ring.big::before { inset: 11px; }
.sc-ring.big span { font-size: 42px; letter-spacing: -.03em; }
.sc-ring.mini { width: 48px; height: 48px; }
.sc-ring.mini::before { inset: 5px; }
.sc-ring.mini span { font-size: 14px; }

/* Hero */
.sc-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.sc-hero-score { display: grid; justify-items: center; gap: 10px; }
.sc-grade { font: 700 14px 'Outfit', sans-serif; padding: 3px 16px; border-radius: 999px; color: #059669; background: #e7f8f0; }
.sc-grade.ok { color: #b45309; background: #fef3c7; }
.sc-grade.bad { color: #dc2626; background: #fdecec; }
.sc-hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.sc-type { padding: 3px 11px; border-radius: 999px; background: #f1f2f5; font: 600 12px 'Inter', sans-serif; color: #4b5563; }
.sc-delta { font-size: 12.5px; font-weight: 600; color: var(--sc-muted); }
.sc-delta.up { color: #059669; }
.sc-delta.down { color: #dc2626; }
.sc-hero-title { font-family: 'Outfit', sans-serif; font-size: 22px; letter-spacing: -.02em; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.sc-hero-url { display: inline-block; margin-top: 3px; font-size: 13px; color: var(--sc-muted); text-decoration: none; overflow-wrap: anywhere; }
.sc-hero-url:hover { color: #e8323f; text-decoration: underline; }
.sc-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sc-counts span { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; }
.sc-counts b { font-size: 14px; margin-right: 2px; }
.c-pass { background: #e7f8f0; color: #067a55; }
.c-warn { background: #fef3c7; color: #92400e; }
.c-fail { background: #fdecec; color: #b91c1c; }
.sc-meta { margin-top: 12px; font-size: 12.5px; color: var(--sc-dim); }
.sc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.sc-actions .sc-btn { gap: 7px; }

/* Category grades */
.sc-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 16px; }
.sc-cat { display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: 14px; text-decoration: none; color: inherit; transition: background .15s, transform .15s; }
.sc-cat:hover { background: #f6f7f9; transform: translateY(-1px); }
.sc-cat b { font-size: 13px; text-align: center; }
.sc-cat small { font-size: 12px; color: var(--sc-muted); }

/* Previews */
.sc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sc-two .sc-card { margin-bottom: 18px; }
.sc-serp { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--sc-border); border-radius: 14px; font-family: Arial, 'Helvetica Neue', sans-serif; }
.sc-serp-site { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #202124; }
.sc-serp-site small { color: #5f6368; font-size: 13px; }
.sc-fav { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #5f6368; flex: 0 0 auto; }
.sc-serp-title { margin-top: 8px; font-size: 20px; line-height: 1.3; color: #1a0dab; }
.sc-serp-desc { margin-top: 4px; font-size: 14px; line-height: 1.58; color: #4d5156; }
.sc-serp-desc.none { color: #b91c1c; font-style: italic; }
.sc-share { margin-top: 14px; border: 1px solid var(--sc-border); border-radius: 14px; overflow: hidden; }
.sc-share-img { position: relative; aspect-ratio: 1.91 / 1; background: #eceef2; display: grid; place-items: center; overflow: hidden; }
.sc-share-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-share-img em { font-size: 12.5px; color: var(--sc-dim); display: none; }
.sc-share-img.noimg em { display: block; }
.sc-share-body { display: grid; gap: 3px; padding: 12px 14px; background: #f7f8fa; }
.sc-share-body small { font-size: 11px; letter-spacing: .04em; color: var(--sc-muted); }
.sc-share-body b { font-size: 14.5px; line-height: 1.3; }
.sc-share-body span { font-size: 12.5px; color: var(--sc-muted); }

/* Check rows, shared by the priority list and the sections */
.sc-ic { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.sc-ic svg { width: 14px; height: 14px; }
.st-pass .sc-ic { background: #e7f8f0; color: #059669; }
.st-warn .sc-ic { background: #fef3c7; color: #d97706; }
.st-fail .sc-ic { background: #fdecec; color: #dc2626; }
.st-info .sc-ic { background: #eef2ff; color: #6366f1; }
.sc-check, .sc-prio { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid #f0f1f4; }
.sc-check:first-of-type, .sc-prio:first-of-type { border-top: 0; }
.sc-cmain, .sc-pmain { min-width: 0; flex: 1; }
.sc-ctitle { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 600; font-size: 14.5px; }
.sc-cmsg { margin: 3px 0 0; font-size: 13.5px; line-height: 1.55; color: #4b5563; }
.sc-imp { padding: 1px 9px; border-radius: 999px; font: 600 11px/1.7 'Inter', sans-serif; text-transform: capitalize; }
.imp-high { background: #fdecec; color: #b91c1c; }
.imp-medium { background: #fef3c7; color: #92400e; }
.imp-low { background: #f1f2f5; color: #6b7280; }
.sc-grp { margin-left: auto; font: 500 11.5px 'Inter', sans-serif; color: var(--sc-dim); }
.sc-fix { margin-top: 9px; padding: 10px 13px; border-radius: 10px; background: #f7f8fa; border: 1px solid #eceef2; font-size: 13px; line-height: 1.55; color: #374151; }
.sc-fix b { color: #111827; margin-right: 4px; }
.sc-det { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.sc-det li { font: 12.5px/1.5 'JetBrains Mono', ui-monospace, monospace; color: #4b5563; background: #f7f8fa; border-radius: 7px; padding: 4px 9px; overflow-wrap: anywhere; }
.sc-showmore { display: block; width: 100%; margin-top: 8px; padding: 11px; border: 1px dashed #d5d8de; border-radius: 12px; background: none; font: 600 13.5px 'Inter', sans-serif; color: #e8323f; cursor: pointer; }
.sc-showmore:hover { background: #fff3f1; }
.sc-allgood { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, #f0fdf7, #fff); }
.sc-allgood h3 { margin: 0; font-family: 'Outfit', sans-serif; font-size: 18px; }
.sc-allgood p { margin: 3px 0 0; color: var(--sc-muted); font-size: 13.5px; }
.sc-allgood-ic { width: 44px; height: 44px; border-radius: 50%; background: #e7f8f0; color: #059669; display: grid; place-items: center; }
.sc-allgood-ic svg { width: 22px; height: 22px; }

/* Sections */
.sc-sec-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 2px; border-bottom: 1px solid var(--sc-border); }
.sc-sec-head h3 { margin: 0; font-family: 'Outfit', sans-serif; font-size: 18px; }
.sc-sec-head small { color: var(--sc-muted); font-size: 12.5px; }
.sc-sec-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff3f1; color: #e8323f; flex: 0 0 auto; }
.sc-sec-score { margin-left: auto; display: flex; align-items: baseline; gap: 8px; }
.sc-sec-score b { font: 700 26px 'Outfit', sans-serif; color: #059669; }
.sc-sec-score.ok b { color: #d97706; }
.sc-sec-score.bad b { color: #dc2626; }
.sc-sec-score span { font-weight: 600; color: var(--sc-muted); }

/* Detail cards */
.sc-data { display: grid; gap: 12px; margin-bottom: 18px; }
.sc-detail { padding: 0; margin: 0; overflow: hidden; }
.sc-detail summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 22px; cursor: pointer; list-style: none; font: 600 15px 'Outfit', sans-serif; }
.sc-detail summary::-webkit-details-marker { display: none; }
.sc-detail summary small { font: 400 12.5px 'Inter', sans-serif; color: var(--sc-muted); }
.sc-detail summary::after { content: "+"; margin-left: 10px; font: 400 20px/1 'Inter', sans-serif; color: var(--sc-dim); }
.sc-detail[open] summary::after { content: "–"; }
.sc-detail-body { padding: 4px 22px 20px; }
.sc-outline { list-style: none; margin: 0; padding: 0 6px 0 0; font-size: 13.5px; max-height: 440px; overflow-y: auto; }
.sc-outline li { padding: 5px 0; display: flex; gap: 9px; align-items: baseline; }
.sc-outline i { flex: 0 0 auto; width: 28px; font: 600 10.5px 'JetBrains Mono', monospace; color: #fff; background: #9ca3af; border-radius: 5px; text-align: center; padding: 2px 0; font-style: normal; }
.sc-outline .lv1 i { background: #111827; }
.sc-outline .lv2 i { background: #ff4d43; }
.sc-outline .lv3 i { background: #6b7280; }
.sc-outline .lv2 { padding-left: 14px; } .sc-outline .lv3 { padding-left: 28px; } .sc-outline .lv4 { padding-left: 42px; } .sc-outline .lv5 { padding-left: 56px; } .sc-outline .lv6 { padding-left: 70px; }
.sc-outline .empty { color: var(--sc-muted); }
.sc-tablewrap { overflow-x: auto; }
.sc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sc-table th { text-align: left; font: 600 11.5px 'Inter', sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--sc-dim); padding: 8px 10px; border-bottom: 1px solid var(--sc-border); white-space: nowrap; }
.sc-table td { padding: 9px 10px; border-bottom: 1px solid #f3f4f6; vertical-align: top; overflow-wrap: anywhere; }
.sc-table tr.bad td { background: #fff8f8; }
.sc-table code { font: 12px 'JetBrains Mono', monospace; background: #f1f2f5; padding: 2px 6px; border-radius: 5px; }
.sc-table em { color: var(--sc-dim); }
.sc-table .miss { color: #dc2626; }
.sc-table small { color: var(--sc-muted); }
.tk { font-weight: 700; } .tk.y { color: #059669; } .tk.n { color: #d1d5db; }
.sc-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }
.sc-pills > span:first-child { font-size: 12px; color: var(--sc-muted); margin-right: 4px; }
.sc-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #f1f2f5; font-size: 12px; color: #374151; }
.sc-pill b { color: var(--sc-muted); font-weight: 600; }
.sc-pill.in { background: #eef2ff; color: #4f46e5; } .sc-pill.out { background: #f1f2f5; }
.sc-pill.ok { background: #e7f8f0; color: #067a55; } .sc-pill.no { background: #fdecec; color: #b91c1c; }
.sc-chain { list-style: none; margin: 0 0 14px; padding: 0; font: 12.5px 'JetBrains Mono', monospace; display: grid; gap: 4px; }
.sc-chain b { color: #6366f1; margin-right: 6px; }
.sc-pages td.scc { width: 70px; }

/* Speed test */
.sc-speed-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-speed-wait { display: flex; align-items: center; gap: 12px; padding: 18px 0 4px; color: var(--sc-muted); font-size: 13.5px; }
.sc-speed-res { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-top: 10px; }
.sc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; flex: 1; min-width: 280px; }
.sc-tile { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--sc-border); border-left-width: 4px; display: grid; gap: 2px; }
.sc-tile small { color: var(--sc-muted); font-size: 12px; }
.sc-tile b { font: 700 19px 'Outfit', sans-serif; }
.sc-tile.good { border-left-color: #10b981; } .sc-tile.ok { border-left-color: #f59e0b; } .sc-tile.bad { border-left-color: #ef4444; }
.sc-opps { margin: 6px 0 0; padding-left: 18px; }
.sc-note { margin: 12px 0 0; font-size: 12px; color: var(--sc-dim); }

/* History */
.sc-history { padding: 20px 22px; }
.sc-history-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sc-history-head h3 { margin: 0; font-family: 'Outfit', sans-serif; font-size: 17px; }
.sc-history-head span { font-size: 12.5px; color: var(--sc-muted); }
.sc-hrow { display: flex; align-items: center; gap: 14px; padding: 11px 8px; border-top: 1px solid #f0f1f4; cursor: pointer; border-radius: 10px; }
.sc-hrow:hover { background: #f8f9fb; }
.sc-hmain { min-width: 0; flex: 1; display: grid; gap: 1px; }
.sc-hmain b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-hmain small { color: var(--sc-muted); font-size: 12px; }
.sc-hscore { font: 700 16px 'Outfit', sans-serif; color: #059669; }
.sc-hscore.ok { color: #d97706; } .sc-hscore.bad { color: #dc2626; }
.sc-hdel { width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--sc-dim); font-size: 18px; line-height: 1; cursor: pointer; }
.sc-hdel:hover { background: #fdecec; color: #dc2626; }

@media (max-width: 900px) {
  .sc-cats { grid-template-columns: repeat(3, 1fr); }
  .sc-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sc-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sc-hero-top, .sc-counts, .sc-actions { justify-content: center; }
  .sc-cats { grid-template-columns: repeat(2, 1fr); }
  .sc-kw, .sc-run { flex: 1 1 100%; }
  .sc-card { padding: 18px 16px; }
  .sc-grp { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .sc-spin { animation: none; } .sc-cat { transition: none; } }

/* Print / save as PDF: just the report, on white */
@media print {
  .sidebar, .topbar, .nav-scrim, .sc-noprint { display: none !important; }
  .main-content { margin-left: 0 !important; }
  body, .main-content, .content-inner { background: #fff !important; }
  .content-inner { padding: 0 !important; max-width: none !important; }
  .sc-card { box-shadow: none !important; border: 1px solid #e5e7eb !important; break-inside: avoid; }
  .sc-section, .sc-detail { break-inside: auto; }
  .sc-outline { max-height: none !important; overflow: visible !important; }
  .sc-check, .sc-prio { break-inside: avoid; }
  .sc-ring { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
