/* static/css/app.css
   Unified stylesheet (app.css + style.css merged)
*/

/* -----------------------------
   Tokens
------------------------------ */
:root{
  --page: #f7fafc;
  --text: #0f172a;
  --muted: #64748b;

  --brand: #14b8a6; /* teal */

  --nav-bg: #0b2130;
  --nav-bg2: #0f2f3a;
  --nav-text: rgba(255,255,255,.92);
  --nav-muted: rgba(204,251,241,.75);

  --bg: #0b1220;
  --card: #ffffff;

  --border: rgba(17,24,39,.10);
  --shadow: 0 10px 30px rgba(17,24,39,.10);
  --radius: 16px;

  --pass: #16a34a;
  --fail: #dc2626;
  --warn: #f59e0b;
  --na:   #64748b;

  --critical:  #b91c1c;
  --important: #ea580c;
  --best:      #2563eb;
}

/* -----------------------------
   Base reset
------------------------------ */
*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.45;
}

a{ color: var(--brand); text-decoration: none; }
a:hover{ text-decoration: underline; }

.muted{ color: var(--muted); }
.dot{ margin: 0 6px; opacity: .6; }

.container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.page{
  padding: 28px 0 48px;
}

/* -----------------------------
   Topbar
------------------------------ */
.topbar{
  background: linear-gradient(180deg, var(--nav-bg) 0%, var(--nav-bg2) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
  z-index: 20;
}

/* IMPORTANT: do NOT give header its own margins from page layout */
.topbar .container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 16px;
}

.topbar-inner{
  min-height: 64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.brand-link{
  font-weight: 900;
  letter-spacing: .2px;
  color: #fff;
  text-decoration: none;
}

.topnav{
  display:flex;
  gap: 14px;
  align-items: center;
}

.topnav-link{
  color: var(--nav-muted);
  text-decoration:none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 999px;
}

.topnav-link:hover{
  color: var(--nav-text);
  background: rgba(255,255,255,.08);
  text-decoration: none;
}

/* CTA-ish link (Login, Pricing, etc.) */
.topnav-link.topnav-cta{
  color:#fff;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
}
.topnav-link.topnav-cta:hover{
  background: rgba(255,255,255,.14);
}

/* Logout as button */
.topnav-link.topnav-logout{
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.topnav-link.topnav-logout:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.26);
}

/* User chip */
.topnav-user{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.10);
}

.topnav-avatar{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.18);
}

.topnav-avatar-fallback{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 14px;
}

.topnav-user-meta{
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  max-width: 220px;
}

.topnav-user-name{
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topnav-user-email{
  color: rgba(203,213,225,.85);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px){
  .topnav-user-email{ display:none; }
  .topnav-user-meta{ max-width: 140px; }
}

/* -----------------------------
   Footer
------------------------------ */
.footer{
  border-top: 1px solid var(--border);
  background: #fff;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
}

/* -----------------------------
   Forms / controls
   NOTE: do NOT make all buttons/inputs 100% by default (that broke layouts)
------------------------------ */
input, select, textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  font: inherit;
}

button{
  font: inherit;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;

  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;

  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary{
  background: #111827;
  color: #fff;
  border-color: rgba(0,0,0,0.18);
}
.btn-primary:hover{ filter: brightness(1.05); text-decoration:none; }

.btn-secondary{
  background: #fff;
  border-color: rgba(0,0,0,0.14);
  color: #111827;
}
.btn-secondary:hover{
  border-color: rgba(17,24,39,.22);
  text-decoration:none;
}

/* -----------------------------
   Cards / layout helpers
------------------------------ */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 18px;          /* ✅ главное */
}

.card > :first-child{ margin-top: 0; }
.card > :last-child{ margin-bottom: 0; }

.section{ margin-top: 22px; }
.section-head{ margin-bottom: 12px; }
.section-head h2{
  margin: 0 0 6px 0;
  font-size: 20px;
  letter-spacing: .2px;
}
.section-head p{ margin: 0; }

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
}

/* -----------------------------
   Home hero form (your landing)
------------------------------ */
.hero-audit-form{
  display:flex;
  gap: 10px;
  align-items: center;
}

.hero-audit-form input[type="url"]{
  flex: 1;
  height: 48px;
  font-size: 15px;
  width: auto;          /* IMPORTANT: do not hardcode 1640px */
  min-width: 220px;
}

.hero-audit-form button{
  height: 48px;
  padding: 0 22px;
  font-weight: 900;
  white-space: nowrap;
}

/* -----------------------------
   Report page
------------------------------ */
.report-hero{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 18px 0 6px;
}
@media (max-width: 700px){
  .report-hero{ grid-template-columns: 1fr; }
  .report-grade{ justify-self: start; }
}

.report-title h1{
  margin: 0;
  font-size: 34px;
  letter-spacing: .2px;
}
.report-subtitle{
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}
.report-subtitle a{ color: #2563eb; }

.report-grade{
  background:#fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  min-width: 150px;
  text-align: center;
  position: relative;
  overflow:hidden;
}
.report-grade::before{
  content:"";
  position:absolute;
  inset: 0;
  background: radial-gradient(600px 120px at 50% -20%, rgba(79,70,229,.25), transparent 55%);
  pointer-events:none;
}
.grade-letter{ font-size: 28px; font-weight: 900; margin-top: 2px; }
.grade-score{ color: var(--muted); font-weight: 800; font-size: 12px; margin-top: 2px; }

.grade-A .grade-letter{ color: #16a34a; }
.grade-B .grade-letter{ color: #2563eb; }
.grade-C .grade-letter{ color: #f59e0b; }
.grade-D .grade-letter,
.grade-E .grade-letter,
.grade-F .grade-letter{ color: #dc2626; }

/* Summary cards */
.summary-cards{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px){
  .summary-cards{ grid-template-columns: 1fr; }
}

/* KPI */
.summary-kpis,
.kpi-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 860px){
  .summary-kpis,
  .kpi-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.kpi{
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
}
.kpi-num{
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}
.kpi-label{
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}

.kpi-fail{ border-color: rgba(220,38,38,.25); background: rgba(220,38,38,.06); }
.kpi-warn{ border-color: rgba(245,158,11,.25); background: rgba(245,158,11,.06); }
.kpi-pass{ border-color: rgba(22,163,74,.25); background: rgba(22,163,74,.06); }
.kpi-na  { border-color: rgba(100,116,139,.25); background: rgba(100,116,139,.06); }

/* Badges / pills */
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid var(--border);
  background: rgba(17,24,39,.02);
}
.badge-pass{ border-color: rgba(22,163,74,.25); background: rgba(22,163,74,.08); color: #166534; }
.badge-fail{ border-color: rgba(220,38,38,.25); background: rgba(220,38,38,.08); color: #7f1d1d; }
.badge-warn{ border-color: rgba(245,158,11,.30); background: rgba(245,158,11,.10); color: #7c2d12; }
.badge-na{ border-color: rgba(100,116,139,.25); background: rgba(100,116,139,.10); color: #334155; }

.pill{
  display:inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 900;
  font-size: 11px;
  background: rgba(17,24,39,.02);
}

/* Category cards */
.category-card{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}
.cat-left{ display:flex; gap: 10px; align-items:flex-start; }
.cat-icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(79,70,229,.10);
  border: 1px solid rgba(79,70,229,.12);
  font-size: 18px;
}
.cat-title{
  font-weight: 900;
  font-size: 14px;
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap: wrap;
}
.cat-sub{ font-size: 12px; margin-top: 4px; }
.score-pill{
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(17,24,39,.02);
}

/* Tooltip */
.tooltip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  position: relative;
  cursor: default;
}
.tooltip .tooltip-text{
  position:absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: min(340px, 70vw);
  background: #0b1220;
  color: rgba(255,255,255,.92);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease;
}
.tooltip .tooltip-text::after{
  content:"";
  position:absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #0b1220;
}
.tooltip:hover .tooltip-text{ opacity: 1; }

/* Recommendations */
.recs{ display:grid; gap: 14px; }
.rec-block{
  background:#fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.rec-block-title{
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17,24,39,.02), transparent);
}
.rec-dot{ width: 10px; height: 10px; border-radius: 999px; }
.rec-dot.rec-critical{ background: var(--critical); }
.rec-dot.rec-important{ background: var(--important); }
.rec-dot.rec-best_practice{ background: var(--best); }

.rec-card{
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.rec-card:first-child{ border-top: 0; }
.rec-title{ font-weight: 900; font-size: 14px; }
.rec-meta{ font-size: 12px; margin-top: 4px; }
.rec-body{ margin-top: 10px; }

/* Pro lock / KB */
.pro-lock{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(79,70,229,.35);
  background: rgba(79,70,229,.06);
}
.pro-lock.compact{ margin-top: 10px; padding: 8px 10px; }
.pro-lock-text{
  font-size: 12px;
  font-weight: 900;
  color: rgba(17,24,39,.78);
}

/* KB box */
.kb-box{
  margin-top: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 2px dashed rgba(99,102,241,.35);
  background: rgba(99,102,241,.06);
}
.kb-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.kb-title{
  display:inline-flex;
  align-items:center;
  gap: 8px;

  font-weight: 900;
  font-size: 13px;
  letter-spacing: .2px;
  color: #4338ca;

  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.28);
  box-shadow: 0 6px 18px rgba(99,102,241,.10);
}
.kb-title::before{ content:"💡"; font-size: 14px; }

.kb-box .btn,
.kb-box button{ width:auto !important; }

.free-explanation{
  width:100%;
  background:#f8fafc;
  border: 1px solid rgba(148,163,184,.35);
  border-radius:14px;
  padding:14px 16px;
  line-height:1.6;
  margin: 0 0 10px 0;
}
.free-explanation p{ margin:8px 0; }
.free-bullet{ margin:6px 0; }

.pro-guide{
  width:100%;
  margin: 0;
  box-sizing:border-box;

  background:#0f172a;
  color:#e5e7eb;

  border: 1px solid rgba(148,163,184,.25);
  border-radius:14px;
  padding:14px 16px;

  font-size:13px;
  line-height:1.65;

  white-space:pre-wrap;
  word-break:break-word;
  overflow-x:auto;

  box-shadow: 0 10px 28px rgba(2,6,23,.12);
}

/* -----------------------------
   Pricing
------------------------------ */
.page-pricing .pricing-head{ margin: 24px 0 18px; }
.page-pricing .subtitle{ margin-top: 8px; }

.pricing-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
@media (max-width: 900px){
  .pricing-grid{ grid-template-columns: 1fr; }
}

.pricing-card{
  position: relative;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17,24,39,.06);
}
.pricing-card.featured{
  border-width: 2px;
  transform: translateY(-2px);
}

.pricing-card h2{ margin: 0 0 10px; }
.price{
  font-size: 34px;
  font-weight: 900;
  margin: 8px 0 14px;
}
.price span{ font-size: 14px; font-weight: 700; opacity: .7; margin-left: 6px; }

.features{
  margin: 0 0 16px;
  padding-left: 18px;
  line-height: 1.6;
}

.pricing-card .badge{
  position:absolute;
  top: 12px;
  right: 12px;
}

/* ---- Landing cards padding fix ---- */

/* Любая карточка на главной (и не только), если это div с рамкой/скруглением */
.page-home .grid-2 > .card{
  padding: 16px 18px;
}

/* На всякий случай: если где-то карточки не имеют class="card", но выглядят как карточки */
.page-home .grid-2 > div:not(.card){
  padding: 16px 18px;
  border-radius: 16px;
}

/* Чтобы заголовки и абзацы не прижимались */
.page-home .card > :first-child,
.page-home .grid-2 > div > :first-child{
  margin-top: 0;
}
.page-home .card > :last-child,
.page-home .grid-2 > div > :last-child{
  margin-bottom: 0;
}

/* Чуть комфортнее списки внутри больших карточек */
.page-home .card ul{
  margin: 10px 0 0;
  padding-left: 18px;
}
.page-home .card li{
  margin: 6px 0;
}

/* =========================
   REPORT PAGE FIXES
   ========================= */

/* Ensure cards used without .card-body still have padding (home + misc) */
.page-home .card,
.page-pricing .card{
  padding: 16px;
}
.page-home .card > ul,
.page-home .card > ol{
  margin: 10px 0 0;
  padding-left: 18px;
}
.page-home .card > strong{
  display: block;
}

/* Report: keep title/body layout clean */
.report-page .card{
  padding: 0; /* report cards rely on .card-title/.card-body */
}
.report-page .card-title{
  padding: 14px 16px 0;
}
.report-page .card-body{
  padding: 10px 16px 16px;
}

/* Fix paragraphs/lists inside report cards so text doesn't touch edges */
.report-page .card-body p{
  margin: 10px 0 0;
}
.report-page .card-body ul,
.report-page .card-body ol{
  margin: 10px 0 0;
  padding-left: 18px;
}
.report-page .card-body li{
  margin: 4px 0;
}

/* Make the "Issues & fixes" blocks breathe */
.report-page .rec-card{
  padding: 16px;
}
.report-page .rec-meta{
  margin-top: 6px;
}
.report-page .rec-card p{
  line-height: 1.65;
}

/* KB box layout: button + content spacing */
.report-page .kb-box{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.report-page .kb-head{
  margin-bottom: 0;
}
.report-page .free-content,
.report-page .pro-content{
  width: 100%;
}
.report-page .pro-content{
  margin-top: 2px;
}

/* Make buttons not stretch full width in report areas */
.report-page .btn,
.report-page button.btn{
  width: auto;
}
.report-page .pro-open-btn{
  align-self: flex-start;
}

/* Advanced details nicer */
.report-page .advanced-details{
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.report-page .advanced-summary{
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(17,24,39,.02), transparent);
  border-bottom: 1px solid var(--border);
}
.report-page .advanced-details[open] .advanced-summary{
  border-bottom: 1px solid var(--border);
}
.report-page .advanced-details > div{
  padding: 14px 16px 16px;
}

.summary-card{
  grid-column: span 2;
}

/* =========================
   Primary action button
   ========================= */

.hero-audit-form button,
.btn-primary {
  appearance: none;
  border: none;
  border-radius: 14px;

  height: 48px;
  padding: 0 28px;

  background: linear-gradient(
    180deg,
    #111827 0%,
    #020617 100%
  );

  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .2px;

  cursor: pointer;

  box-shadow:
    0 8px 24px rgba(2, 6, 23, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

/* Hover */
.hero-audit-form button:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 32px rgba(2, 6, 23, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

/* Active (click) */
.hero-audit-form button:active,
.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 6px 16px rgba(2, 6, 23, 0.35),
    inset 0 2px 4px rgba(0,0,0,0.35);
}

/* Focus (accessibility) */
.hero-audit-form button:focus-visible,
.btn-primary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(79, 70, 229, 0.45),
    0 8px 24px rgba(2, 6, 23, 0.35);
}

/* =========================
   REPORT: Summary emphasis
   ========================= */

/* Make the Summary card slightly “hero-like” */
.summary-card .card-body{
  padding-top: 14px;
}

/* 1) Impact title + text */
.summary-card h3,
.summary-card h4{
  margin: 0;
}

.summary-card .impact-box{
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(79,70,229,.18);
  background: radial-gradient(900px 180px at 15% 0%, rgba(79,70,229,.10), transparent 55%),
              rgba(79,70,229,.04);
}

.summary-card .impact-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .2px;
  color: #3730a3;
  background: rgba(99,102,241,.14);
  border: 1px solid rgba(99,102,241,.22);
}

.summary-card .impact-pill::before{
  content: "📌";
  font-size: 14px;
}

/* 2) “Top issues found” block as a nice list */
.summary-card .summary-toplist{
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.summary-card .summary-toplist li{
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.08);
  background: rgba(17,24,39,.02);
}

.summary-card .summary-toplist li::before{
  content: "•";
  font-weight: 900;
  margin-top: 1px;
  opacity: .55;
}

/* Make check id pop a bit */
.summary-card .summary-toplist strong{
  font-weight: 900;
  color: #0f172a;
}

/* 3) Next step banner */
.summary-card .summary-next{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(79,70,229,.28);
  background: rgba(79,70,229,.06);
  font-weight: 650;
}

.summary-card .summary-next strong{
  font-weight: 900;
  color: #0f172a;
}

/* 4) KPI tiles: a bit more “dashboard” */
.summary-kpis{
  margin-top: 10px;
}

.summary-kpis .kpi{
  background: #fff;
  box-shadow: 0 10px 26px rgba(17,24,39,.06);
}

.summary-kpis .kpi-num{
  font-size: 28px;
}

.summary-kpis .kpi-label{
  letter-spacing: .08em;
}

/* Mobile spacing */
@media (max-width: 720px){
  .summary-card .summary-toplist li{
    padding: 10px 12px;
  }
}

/* =========================
   REPORT: Header polish (Target + Pro CTA)
   ========================= */

/* Make target line look like a pill */
.report-subtitle{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.report-subtitle a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(79,70,229,.18);
  background: rgba(79,70,229,.06);
  font-weight: 800;
  text-decoration: none;
}

.report-subtitle a:hover{
  background: rgba(79,70,229,.10);
  text-decoration: none;
}

/* Pro CTA as a "hero card" */
.pro-cta.pro-cta-hero{
  margin: 14px 0 18px;
  border: 1px solid rgba(79,70,229,.16);
  background:
    radial-gradient(900px 180px at 15% 0%, rgba(79,70,229,.12), transparent 55%),
    #fff;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(17,24,39,.08);
  padding: 14px 16px;
}

.pro-cta.pro-cta-hero .pro-cta-title{
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 4px;
}

.pro-cta.pro-cta-hero .pro-cta-text{
  font-weight: 650;
}

.pro-cta.pro-cta-hero .pro-cta-right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* Nicer Pro button */
.btn.btn-pro{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;

  color: #fff;
  background: linear-gradient(180deg, #0b1220 0%, #0b1220 60%, rgba(11,18,32,.94) 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 26px rgba(2,6,23,.20);
  text-decoration: none;
}

.btn.btn-pro:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(2,6,23,.26);
  text-decoration: none;
}

.btn.btn-pro:active{
  transform: translateY(0);
}

/* tiny note under button */
.pro-cta-note{
  font-size: 12px;
  font-weight: 650;
}

/* mobile */
@media (max-width: 720px){
  .pro-cta.pro-cta-hero{
    display: grid;
    gap: 12px;
  }
  .pro-cta.pro-cta-hero .pro-cta-right{
    align-items: flex-start;
  }
}

/* =========================
   Global loading overlay
   ========================= */

.loading-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;

  background: rgba(246,247,251,.82);
  backdrop-filter: blur(4px);

  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-card{
  background: #fff;
  border-radius: 20px;
  padding: 26px 28px;
  min-width: 280px;

  text-align: center;

  border: 1px solid rgba(79,70,229,.18);
  box-shadow: 0 20px 50px rgba(17,24,39,.18);
}

.loading-title{
  font-weight: 900;
  font-size: 16px;
  margin-top: 14px;
}

.loading-text{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* Spinner */
.spinner{
  width: 42px;
  height: 42px;
  border-radius: 50%;

  border: 3px solid rgba(79,70,229,.20);
  border-top-color: var(--brand);

  animation: spin 0.9s linear infinite;
  margin: 0 auto;
}

@keyframes spin{
  to { transform: rotate(360deg); }
}

/* IMPORTANT: make [hidden] actually hide the overlay */
.loading-overlay[hidden]{
  display: none !important;
}

.hero-audit-wrap{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.audit-counter{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;

  width: fit-content;
  max-width: 100%;

  padding: 8px 12px;
  border-radius: 999px;

  background: rgba(79,70,229,.08);
  border: 1px solid rgba(79,70,229,.18);
  box-shadow: 0 10px 24px rgba(17,24,39,.06);

  font-size: 13px;
  font-weight: 700;
  color: rgba(17,24,39,.80);
}

.audit-counter-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(79,70,229,.9);
}

.audit-counter strong{
  font-weight: 900;
}

.audit-counter-upgrade{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(79,70,229,.12);
  border: 1px solid rgba(79,70,229,.22);

  font-weight: 900;
  font-size: 12px;
  text-decoration:none;
}

.audit-counter-upgrade:hover{
  background: rgba(79,70,229,.18);
  text-decoration:none;
}

.pro-badge{
  margin-left: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
  border-radius: 999px;

  color: #4f46e5;
  background: rgba(79,70,229,.10);
  border: 1px solid rgba(79,70,229,.25);

  vertical-align: middle;
  white-space: nowrap;
}

/* =========================
   ABOUT (clean + consistent)
   ========================= */

.page-about .page{
  padding-top: 24px;
}

/* spacing between sections on About */
.page-about section{
  margin-top: 18px;
}
.page-about section:first-child{
  margin-top: 0;
}

/* cards */
.page-about .card{
  padding: 22px;
}

/* grid */
.page-about .grid-2{
  gap: 18px;
  align-items: stretch;
}

/* typography */
.page-about .muted{
  line-height: 1.7;
}

.page-about h1,
.page-about h2{
  margin: 0 0 10px 0;
}

.page-about p{
  margin: 10px 0;
}

.page-about ul{
  margin: 10px 0 0;
  padding-left: 18px;
}

.page-about li{
  margin: 6px 0;
}

/* “Why useful” last paragraph no extra space */
.page-about .about-why p:last-child{
  margin-bottom: 0;
}

/* Mobile */
@media (max-width: 900px){
  .page-about section{ margin-top: 14px; }
  .page-about .grid-2{ gap: 14px; }
  .page-about .card{ padding: 18px; }
}