/* sa5.css – Audyt SEO v5.0 · Piotr Pawłoś */

#sa5-root {
  --ac:    #1a3a8f;
  --acb:   #2563eb;
  --green: #16a34a;
  --warn:  #d97706;
  --red:   #dc2626;
  --tx:    #0f172a;
  --tx2:   #475569;
  --tx3:   #94a3b8;
  --bd:    #e2e8f0;
  --bg:    #f8fafc;
  --white: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 60px;
  color: var(--tx);
}
#sa5-root *, #sa5-root *::before, #sa5-root *::after { box-sizing: border-box !important; }

/* HERO */
.sa5-hero {
  background: linear-gradient(135deg, #0f1e5c 0%, #1a3a8f 55%, #2563eb 100%);
  border-radius: 18px;
  padding: 44px 40px 48px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.sa5-hero::before {
  content:''; position:absolute; right:-80px; top:-80px;
  width:280px; height:280px; border-radius:50%;
  background:rgba(255,255,255,.04); pointer-events:none;
}

.sa5-brand { display:flex; align-items:center; gap:12px; margin-bottom:24px; }
.sa5-logo {
  width:46px; height:46px; border-radius:12px;
  background:rgba(255,255,255,.15); display:flex;
  align-items:center; justify-content:center;
  font-size:15px; font-weight:800; color:#fff;
}
.sa5-brand-name  { font-size:16px; font-weight:700; color:#fff; }
.sa5-brand-title { font-size:12px; color:rgba(255,255,255,.65); margin-top:2px; }

.sa5-hero h2 {
  font-size: clamp(22px,4vw,34px) !important;
  font-weight: 800 !important; color: #fff !important;
  letter-spacing: -.03em !important; line-height: 1.15 !important;
  margin: 0 0 10px !important; padding: 0 !important; border: none !important;
}
.sa5-hero p {
  font-size: 15px; color: rgba(255,255,255,.75);
  line-height: 1.65; margin: 0 0 28px !important;
}

.sa5-form { display:flex; gap:10px; max-width:620px; }
.sa5-field { flex:1; position:relative; display:flex; align-items:center; }
.sa5-field svg { position:absolute; left:14px; pointer-events:none; color:rgba(255,255,255,.45); }

.sa5-field input {
  width: 100% !important;
  height: 52px !important;
  padding: 0 16px 0 44px !important;
  background: rgba(255,255,255,.13) !important;
  border: 1.5px solid rgba(255,255,255,.28) !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 15px !important;
  font-family: inherit !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .2s !important;
  box-sizing: border-box !important;
}
.sa5-field input::placeholder { color: rgba(255,255,255,.42) !important; }
.sa5-field input:focus { border-color: rgba(255,255,255,.6) !important; background: rgba(255,255,255,.2) !important; }

.sa5-run {
  height: 52px !important; padding: 0 22px !important;
  background: #fff !important; color: var(--acb) !important;
  border: none !important; border-radius: 12px !important;
  font-family: inherit !important; font-size: 15px !important;
  font-weight: 700 !important; cursor: pointer !important;
  display: inline-flex !important; align-items: center !important;
  gap: 8px !important; white-space: nowrap !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.22) !important;
  transition: background .18s !important;
}
.sa5-run:hover { background: #eef3ff !important; }
.sa5-run:active { transform: scale(.97); }
.sa5-run:disabled { opacity: .65 !important; cursor: not-allowed !important; }

.sa5-spin {
  display: none; width:16px; height:16px;
  border: 2px solid rgba(37,99,235,.3); border-top-color: var(--acb);
  border-radius: 50%; animation: sa5spin .7s linear infinite;
}
@keyframes sa5spin { to { transform: rotate(360deg); } }

.sa5-err { margin-top:12px; font-size:13px; color:#fca5a5; min-height:18px; }

/* LOADING */
.sa5-loading { display:none; text-align:center; padding:56px 20px; }
.sa5-pulse {
  width:64px; height:64px; border-radius:50%;
  background: var(--acb); margin: 0 auto 28px;
  animation: sa5pulse 1.4s ease-in-out infinite;
}
@keyframes sa5pulse { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.22);opacity:.55;} }
.sa5-steps { display:flex; flex-direction:column; gap:7px; align-items:center; }
.sa5-step { font-size:14px; color:var(--tx3); }
.sa5-step.active { color:var(--acb); font-weight:600; }
.sa5-step.done   { color:var(--green); }
.sa5-step.done::before { content:'✓ '; }

/* RESULTS */
.sa5-results { display:none; }

/* PDF header */
.sa5-pdf-hdr {
  display:none;
  background:var(--ac); color:#fff;
  border-radius:14px 14px 0 0;
  padding:18px 28px;
  justify-content:space-between; align-items:center;
}
.sa5-pdf-brand { display:flex; align-items:center; gap:12px; }
.sa5-pdf-logo {
  width:40px; height:40px; border-radius:10px;
  background:rgba(255,255,255,.2); display:flex;
  align-items:center; justify-content:center;
  font-weight:800; font-size:14px; color:#fff;
}
.sa5-pdf-name { font-size:15px; font-weight:700; }
.sa5-pdf-sub  { font-size:11px; opacity:.7; margin-top:2px; }
.sa5-pdf-right { text-align:right; }
.sa5-pdf-rtitle{ font-size:15px; font-weight:700; }
.sa5-pdf-rdate { font-size:11px; opacity:.65; margin-top:2px; }

/* Summary */
.sa5-card {
  background:var(--white); border:1px solid var(--bd);
  border-radius:14px; padding:28px 30px; margin-bottom:16px;
  box-shadow:0 1px 4px rgba(15,23,42,.07), 0 6px 20px rgba(15,23,42,.06);
}

.sa5-domain {
  font-size:18px; font-weight:700; color:var(--tx);
  margin-bottom:22px; word-break:break-all;
  display:flex; align-items:center; gap:8px;
}
.sa5-domain::before {
  content:''; display:inline-block; width:9px; height:9px;
  border-radius:50%; background:var(--green); flex-shrink:0;
}

.sa5-summary-grid {
  display:grid; grid-template-columns:160px 1fr;
  gap:28px; align-items:center;
}
@media(max-width:540px){ .sa5-summary-grid{ grid-template-columns:1fr; justify-items:center; } }

/* Ring */
.sa5-ring-wrap { text-align:center; }
.sa5-ring {
  width:140px; height:140px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  position:relative; transition:background 1.2s;
  margin:0 auto;
}
.sa5-ring-inner {
  width:104px; height:104px; border-radius:50%;
  background:#fff; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
}
.sa5-ring-num   { font-size:34px; font-weight:800; line-height:1; }
.sa5-ring-sub   { font-size:9px; color:var(--tx3); letter-spacing:.08em; margin-top:2px; }
.sa5-ring-label { font-size:13px; color:var(--tx2); margin-top:8px; }

/* Cat bars */
.sa5-cats { display:flex; flex-direction:column; gap:16px; }
.sa5-cat-top {
  display:flex; justify-content:space-between;
  align-items:center; margin-bottom:5px;
}
.sa5-cat-name { font-size:14px; color:var(--tx2); }
.sa5-cat-pct  { font-size:14px; font-weight:700; }
.sa5-track {
  background:var(--bg); border-radius:100px;
  height:8px; overflow:hidden;
}
.sa5-bar {
  height:100%; border-radius:100px; width:0;
  transition:width 1.3s cubic-bezier(.4,0,.2,1);
}

/* Verdict */
.sa5-verdict {
  margin-top:18px; padding:13px 18px;
  border-radius:10px; font-size:14px;
  line-height:1.65; font-weight:500;
}
.sa5-verdict.good { background:#f0fdf4; color:#15803d; border-left:3px solid var(--green); }
.sa5-verdict.warn { background:#fffbeb; color:#92400e; border-left:3px solid var(--warn); }
.sa5-verdict.bad  { background:#fef2f2; color:#991b1b; border-left:3px solid var(--red); }

/* Sections */
.sa5-section {
  background:var(--white); border:1px solid var(--bd);
  border-radius:14px; overflow:hidden; margin-bottom:14px;
  box-shadow:0 1px 4px rgba(15,23,42,.06);
}
.sa5-sec-head {
  display:flex; align-items:center; gap:10px;
  padding:14px 22px; font-size:15px; font-weight:700;
  color:var(--tx); background:var(--bg);
  border-bottom:1px solid var(--bd);
}
.sa5-sec-head .sa5-sec-ico { font-size:18px; }

/* Check rows */
.sa5-check {
  display:flex; align-items:flex-start; gap:12px;
  padding:13px 22px; border-bottom:1px solid var(--bd);
}
.sa5-check:last-child { border-bottom:none; }
.sa5-check:hover { background:#fafbff; }

.sa5-ci {
  width:26px; height:26px; border-radius:7px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; margin-top:1px;
}
.sa5-ci.good { background:#f0fdf4; }
.sa5-ci.warn { background:#fffbeb; }
.sa5-ci.bad  { background:#fef2f2; }
.sa5-ci svg  { width:13px; height:13px; }
.sa5-ci.good svg { stroke:var(--green); }
.sa5-ci.warn svg { stroke:var(--warn); }
.sa5-ci.bad  svg { stroke:var(--red); }

.sa5-cb { flex:1; min-width:0; }
.sa5-cb-label { font-size:14px; font-weight:600; color:var(--tx); margin-bottom:3px; }
.sa5-cb-desc  { font-size:13px; color:var(--tx2); line-height:1.5; }

.sa5-cv {
  font-size:12px; font-weight:600; white-space:nowrap;
  padding:3px 10px; border-radius:100px;
  align-self:flex-start; flex-shrink:0; margin-top:2px;
}
.good .sa5-cv { background:#f0fdf4; color:#15803d; }
.warn .sa5-cv { background:#fffbeb; color:#92400e; }
.bad  .sa5-cv { background:#fef2f2; color:#991b1b; }

/* CTA */
.sa5-cta {
  background:linear-gradient(135deg,#0f1e5c 0%,#1a3a8f 100%);
  border-radius:14px; padding:28px 30px;
  margin-top:16px; margin-bottom:14px;
  display:flex; gap:18px; align-items:flex-start;
}
.sa5-cta-ico   { font-size:28px; flex-shrink:0; line-height:1; }
.sa5-cta-title { font-size:17px; font-weight:800; color:#fff; margin-bottom:7px; }
.sa5-cta-desc  { font-size:14px; color:rgba(255,255,255,.8); line-height:1.65; margin-bottom:16px; }
.sa5-cta-btns  { display:flex; gap:10px; flex-wrap:wrap; }
.sa5-cta-btn1 {
  padding:10px 20px; background:#fff; color:var(--acb) !important;
  border-radius:10px; font-weight:700; font-size:14px;
  text-decoration:none !important; display:inline-block;
}
.sa5-cta-btn2 {
  padding:10px 20px; background:rgba(255,255,255,.13);
  color:#fff !important; border:1px solid rgba(255,255,255,.28);
  border-radius:10px; font-weight:600; font-size:14px;
  text-decoration:none !important; display:inline-block;
}

/* Bar */
.sa5-bar {
  display:flex; gap:10px; flex-wrap:wrap;
  justify-content:flex-end; margin-top:6px;
}
.sa5-bar-btn {
  display:inline-flex; align-items:center; gap:7px;
  padding:9px 18px; background:var(--white); color:var(--tx2);
  border:1.5px solid var(--bd); border-radius:10px;
  font-family:inherit; font-size:14px; font-weight:500;
  cursor:pointer; transition:background .15s;
}
.sa5-bar-btn:hover { background:var(--bg); }

/* Color helpers */
.c-good { color:var(--green); }
.c-warn { color:var(--warn); }
.c-bad  { color:var(--red); }
.bg-good{ background:var(--green); }
.bg-warn{ background:var(--warn); }
.bg-bad { background:var(--red); }

/* Mobile */
@media(max-width:520px){
  .sa5-hero { padding:28px 18px 34px; }
  .sa5-form { flex-direction:column; }
  .sa5-run  { width:100% !important; justify-content:center !important; }
  .sa5-card { padding:20px 16px; }
  .sa5-cta  { flex-direction:column; padding:22px 18px; }
}

/* Stopka PDF ukryta na ekranie */
.sa5-pdf-footer { display:none; }

/* Podczas druku – klasa dodawana przez JS – ukryj cały motyw */
body.sa5-printing > *:not(#sa5-root) { display:none !important; }
body.sa5-printing #sa5-root { display:block !important; }

/* ════════════════════════════════════
   PRINT — obsługuje nowe okno popup
   (sa5.js otwiera window.open z gotowym HTML)
════════════════════════════════════ */
@media print {
  * { -webkit-print-color-adjust:exact !important; print-color-adjust:exact !important; }
}
