/* ============================================================
   AUDITX — SEO Audit Engine | style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,400;0,500;1,400&family=Syne:wght@700;800;900&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #020817;
  --bg-card:    #0a1628;
  --bg-deep:    #0f172a;
  --border:     #1e293b;
  --border-dim: #0f172a;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim:   #64748b;
  --text-faint: #475569;
  --text-ghost: #334155;
  --green:      #22d3a0;
  --blue:       #0ea5e9;
  --amber:      #f59e0b;
  --red:        #ef4444;
  --purple:     #a78bfa;
  --sky:        #7dd3fc;
  --font-mono:  'DM Mono', monospace;
  --font-disp:  'Syne', sans-serif;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ── Background ───────────────────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--bg-deep) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-deep) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.6;
}
.bg-glow {
  position: fixed; top: 10%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(34,211,160,0.055) 0%, transparent 65%);
}

/* ── Utilities ────────────────────────────────────────────── */
.z1     { position: relative; z-index: 1; }
.hidden { display: none !important; }
.view   { min-height: 100vh; position: relative; z-index: 1; }

/* ============================================================
   LANDING
   ============================================================ */
#view-landing {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center;
}

.logo-mark {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 36px;
  animation: fadeDown 0.6s ease both;
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #22d3a0, #0ea5e9);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #020817; font-weight: 900;
}
.logo-text {
  font-family: var(--font-disp);
  font-size: 22px; font-weight: 900;
  color: var(--green); letter-spacing: -0.02em;
}

.landing-headline {
  font-family: var(--font-disp);
  font-size: clamp(38px, 7vw, 80px);
  font-weight: 900; line-height: 1.02; letter-spacing: -0.045em;
  margin-bottom: 24px;
  animation: fadeDown 0.6s 0.1s ease both;
}
.landing-headline .line-1 {
  background: linear-gradient(150deg, #f1f5f9 30%, #64748b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.landing-headline .line-2 {
  background: linear-gradient(135deg, #22d3a0, #0ea5e9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.landing-sub {
  color: var(--text-dim); font-size: 15px;
  max-width: 540px; line-height: 1.8; margin-bottom: 48px;
  animation: fadeDown 0.6s 0.2s ease both;
}

.search-wrap {
  width: 100%; max-width: 620px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 8px; display: flex; gap: 8px;
  box-shadow: 0 0 0 1px rgba(34,211,160,0.06), 0 32px 64px rgba(0,0,0,.5);
  animation: fadeUp 0.6s 0.3s ease both;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.search-wrap:focus-within {
  box-shadow: 0 0 0 1px rgba(34,211,160,0.22), 0 32px 64px rgba(0,0,0,.5);
  border-color: rgba(34,211,160,0.3);
}
.search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 14px; padding: 10px 16px;
  font-family: var(--font-mono);
}
.search-input::placeholder { color: var(--text-ghost); }

.btn-primary {
  background: linear-gradient(135deg, #22d3a0, #0ea5e9);
  color: var(--bg); border: none; border-radius: 11px;
  padding: 11px 28px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--font-disp);
  letter-spacing: .02em; white-space: nowrap;
  transition: all var(--transition);
}
.btn-primary:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(34,211,160,.25); }
.btn-primary:active { transform: translateY(0); }

.feature-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-top: 52px; max-width: 720px;
  animation: fadeUp 0.6s 0.45s ease both;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 22px; min-width: 130px;
  text-align: center; transition: all var(--transition);
}
.feature-card:hover { border-color: rgba(34,211,160,0.3); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.feature-icon      { font-size: 20px; margin-bottom: 8px; }
.feat-green        { color: #22d3a0; }
.feat-blue         { color: #0ea5e9; }
.feat-amber        { color: #f59e0b; }
.feat-purple       { color: #a78bfa; }
.feat-red          { color: #ef4444; }
.feat-sky          { color: #7dd3fc; }
.feature-label     { font-size: 12px; color: var(--text); font-weight: 500; margin-bottom: 3px; }
.feature-sub       { font-size: 10px; color: var(--text-faint); }

/* ============================================================
   LOADING
   ============================================================ */
#view-loading {
  display: none; flex-direction: column;
  align-items: center; justify-content: center; padding: 40px 20px;
}
.loading-title {
  font-family: var(--font-disp); font-size: 11px; font-weight: 700;
  color: var(--green); letter-spacing: .24em; text-transform: uppercase;
  margin-bottom: 48px;
}
.loading-card {
  width: 100%; max-width: 520px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px;
  box-shadow: 0 32px 64px rgba(0,0,0,.4);
}
.loading-header { display: flex; justify-content: space-between; margin-bottom: 16px; }
.loading-domain { color: var(--text-dim); font-size: 12px; }
.loading-pct    { color: var(--green); font-size: 12px; font-weight: 600; }
.progress-track { background: var(--bg-deep); border-radius: 999px; height: 4px; overflow: hidden; margin-bottom: 28px; }
.progress-bar   { height: 100%; background: linear-gradient(90deg, #22d3a0, #0ea5e9); border-radius: 999px; width: 0%; transition: width .4s ease; }
.loading-status { font-size: 12px; color: var(--green); margin-bottom: 24px; min-height: 18px; }
.loading-status::before { content: '\2192  '; }
.step-list      { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.step-item      { display: flex; align-items: center; gap: 10px; font-size: 11px; opacity: .2; transition: opacity .35s, color .35s; }
.step-item.done   { opacity: 1; color: var(--text-dim); }
.step-item.active { opacity: 1; color: var(--text); }
.step-dot       { font-size: 10px; width: 14px; text-align: center; flex-shrink: 0; }
.step-item.done   .step-dot { color: var(--green); }
.step-item.active .step-dot { color: var(--blue); }

/* ============================================================
   RESULTS
   ============================================================ */
#view-results { display: none; flex-direction: column; min-height: 100vh; }

/* Nav */
.results-nav {
  background: rgba(2,8,23,.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 28px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
  flex-wrap: wrap; gap: 10px;
}
.nav-left  { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-logo  { font-family: var(--font-disp); font-size: 16px; font-weight: 900; color: var(--green); }
.nav-sep   { color: var(--border); }
.nav-domain{ color: var(--sky); font-size: 12px; }
.badge     { font-size: 10px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-faint); background: var(--bg-deep); }
.badge-score{ font-weight: 600; font-size: 10px; padding: 3px 10px; border-radius: 999px; }
.nav-right { display: flex; gap: 8px; }
.btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--text-dim);
  border-radius: var(--radius-sm); padding: 7px 16px; font-size: 11px;
  cursor: pointer; font-family: var(--font-mono); transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--text-faint); color: var(--text); }
.btn-export {
  background: linear-gradient(135deg, #22d3a0, #0ea5e9);
  color: var(--bg); border: none; border-radius: var(--radius-sm);
  padding: 7px 18px; font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: var(--font-disp); transition: all var(--transition);
}
.btn-export:hover { opacity: .9; transform: translateY(-1px); }

/* Body */
.results-body { max-width: 1100px; margin: 0 auto; padding: 30px 20px 60px; }

/* ── Hero Panel ── */
.hero-panel {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-deep));
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 28px 32px; margin-bottom: 20px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center;
}
.score-wrap    { display: flex; align-items: center; gap: 24px; }
.circ-score    { position: relative; flex-shrink: 0; }
.circ-label    { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.circ-num      { font-family: var(--font-disp); font-size: 28px; font-weight: 900; line-height: 1; }
.circ-sub      { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; }
.score-meta-title { font-family: var(--font-disp); font-size: 11px; font-weight: 700; color: var(--text-faint); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.score-meta-grade { font-family: var(--font-disp); font-size: 26px; font-weight: 900; line-height: 1.1; margin-bottom: 12px; }
.score-meta-counts{ display: flex; gap: 18px; flex-wrap: wrap; }
.count-item    { font-size: 11px; font-family: var(--font-mono); }
.count-item.red   { color: var(--red); }
.count-item.amber { color: var(--amber); }
.count-item.green { color: var(--green); }
.score-bars    { flex: 1; min-width: 260px; }
.score-bar-row { margin-bottom: 12px; }
.score-bar-row:last-child { margin-bottom: 0; }
.score-bar-header { display: flex; justify-content: space-between; margin-bottom: 5px; }
.score-bar-label  { font-size: 11.5px; color: var(--text-muted); }
.score-bar-label span { color: var(--text-ghost); }
.score-bar-val    { font-size: 11.5px; font-weight: 600; font-family: var(--font-mono); }
.score-bar-track  { background: var(--border); border-radius: 999px; height: 5px; overflow: hidden; }
.score-bar-fill   { height: 100%; border-radius: 999px; width: 0%; transition: width 1.3s cubic-bezier(0.4,0,0.2,1); }
.mini-scores  { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-score   { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mini-score-label { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .12em; }
.mini-score-num-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.mini-score-num   { font-family: var(--font-mono); font-size: 12px; font-weight: 600; }

/* ── Basic SEO Breakdown Panel ── */
.basic-seo-panel {
  background: var(--bg-card);
  border: 1px solid rgba(34,211,160,0.2);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.basic-seo-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #22d3a0, #0ea5e9, #22d3a0);
}
.panel-header-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.panel-label {
  font-size: 10px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: .14em;
}
.basic-seo-score-badge {
  background: rgba(34,211,160,0.08);
  border: 1px solid rgba(34,211,160,0.25);
  border-radius: 999px;
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
}
.basic-seo-score-badge #basic-seo-score-num { color: #22d3a0; }
.badge-slash { color: var(--text-ghost); font-size: 10px; margin-left: 1px; }
.basic-seo-desc {
  color: var(--text-dim); font-size: 12px; line-height: 1.7;
  margin-bottom: 20px; max-width: 700px;
}

/* Basic SEO checks grid */
.basic-checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.check-card {
  background: var(--bg-deep);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.check-card:hover { transform: translateY(-1px); }
.check-card.status-good   { border-color: rgba(34,211,160,0.2); }
.check-card.status-warn   { border-color: rgba(245,158,11,0.2); }
.check-card.status-bad    { border-color: rgba(239,68,68,0.2); }

.check-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 8px;
}
.check-card-name {
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 500; flex: 1;
}
.check-status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  margin-top: 2px; margin-left: 8px;
}
.status-good .check-status-dot { background: #22d3a0; box-shadow: 0 0 6px #22d3a066; }
.status-warn .check-status-dot { background: #f59e0b; box-shadow: 0 0 6px #f59e0b66; }
.status-bad  .check-status-dot { background: #ef4444; box-shadow: 0 0 6px #ef444466; }

.check-value {
  font-family: var(--font-disp);
  font-size: 18px; font-weight: 800;
  line-height: 1.1; margin-bottom: 4px;
}
.status-good .check-value { color: #22d3a0; }
.status-warn .check-value { color: #f59e0b; }
.status-bad  .check-value { color: #ef4444; }

.check-detail { font-size: 10.5px; color: var(--text-ghost); line-height: 1.5; }

/* char bar under length checks */
.char-bar-wrap { margin-top: 8px; }
.char-bar-track {
  background: var(--border); border-radius: 999px; height: 3px;
  overflow: hidden; position: relative;
}
.char-bar-fill { height: 100%; border-radius: 999px; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }
.char-bar-range {
  display: flex; justify-content: space-between;
  font-size: 9px; color: var(--text-ghost); margin-top: 3px;
}

/* heading tree inside check card */
.heading-tree { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.heading-row  {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-family: var(--font-mono);
}
.heading-tag { color: var(--sky); font-weight: 500; width: 22px; flex-shrink: 0; }
.heading-bar-wrap { flex: 1; background: var(--border); border-radius: 999px; height: 4px; overflow: hidden; }
.heading-bar-fill { height: 100%; border-radius: 999px; }
.heading-count { color: var(--text-faint); font-size: 9px; width: 18px; text-align: right; flex-shrink: 0; }

/* keyword tags */
.kw-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.kw-tag  {
  font-size: 10px; padding: 2px 8px; border-radius: 4px;
  font-family: var(--font-mono);
}
.kw-tag.found    { background: rgba(34,211,160,0.1);  color: #22d3a0; border: 1px solid rgba(34,211,160,0.2); }
.kw-tag.missing  { background: rgba(239,68,68,0.08);  color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.kw-tag.partial  { background: rgba(245,158,11,0.08); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }

/* ── Vitals Panel ── */
.vitals-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 20px; }
.vitals-row   { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.vital-card   { background: var(--bg-deep); border: 1px solid transparent; border-radius: 10px; padding: 14px 20px; text-align: center; min-width: 120px; transition: border-color var(--transition); }
.vital-value  { font-size: 24px; font-weight: 700; font-family: var(--font-mono); line-height: 1; }
.vital-name   { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; margin-top: 5px; }
.vital-status { font-size: 9px; margin-top: 4px; }
.vitals-legend{ font-size: 11px; color: var(--text-ghost); line-height: 1.9; padding: 0 8px; max-width: 300px; }

/* ── Tabs ── */
.tabs-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 11px; padding: 4px; display: flex; gap: 4px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.tab-btn {
  flex: 1; padding: 8px 10px; border-radius: 8px;
  border: none; background: transparent; color: var(--text-faint);
  font-size: 11px; cursor: pointer; font-family: var(--font-mono);
  transition: all var(--transition); white-space: nowrap; min-width: 80px;
}
.tab-btn.active  { background: var(--border); color: var(--text); }
.tab-btn:hover:not(.active) { color: var(--text-muted); }

/* ── Issue Cards ── */
.issues-list   { display: flex; flex-direction: column; gap: 8px; }
.issue-card    { border-radius: var(--radius-md); overflow: hidden; transition: all var(--transition); }
.issue-card.critical { background: #1a0808; border: 1px solid rgba(239,68,68,0.18); }
.issue-card.warning  { background: #0f0d00; border: 1px solid rgba(245,158,11,0.18); }
.issue-card.basicseo { background: #010f1a; border: 1px solid rgba(34,211,160,0.18); }
.issue-card.passed   { background: #001a0e; border: 1px solid rgba(34,211,160,0.15); }
.issue-header { padding: 14px 18px; cursor: pointer; display: flex; align-items: center; gap: 12px; user-select: none; }
.issue-header:hover { opacity: .9; }
.issue-tag { font-size: 9px; font-weight: 600; padding: 3px 9px; border-radius: 999px; font-family: var(--font-mono); white-space: nowrap; flex-shrink: 0; text-transform: uppercase; letter-spacing: .08em; }
.issue-card.critical .issue-tag { background: rgba(239,68,68,0.1);  color: #ef4444; }
.issue-card.warning  .issue-tag { background: rgba(245,158,11,0.1); color: #f59e0b; }
.issue-card.basicseo .issue-tag { background: rgba(34,211,160,0.1); color: #22d3a0; }
.issue-card.passed   .issue-tag { background: rgba(34,211,160,0.08);color: #22d3a0; }
.issue-title    { flex: 1; color: var(--text); font-size: 13.5px; font-weight: 500; }
.issue-url-count{ color: var(--text-ghost); font-size: 11px; font-family: var(--font-mono); flex-shrink: 0; }
.issue-arrow    { color: var(--text-ghost); font-size: 14px; flex-shrink: 0; transition: transform var(--transition); }
.issue-card.open .issue-arrow { transform: rotate(180deg); }
.issue-body     { display: none; padding: 0 18px 18px; }
.issue-card.open .issue-body { display: block; }
.issue-card.critical .issue-body { border-top: 1px solid rgba(239,68,68,0.15); }
.issue-card.warning  .issue-body { border-top: 1px solid rgba(245,158,11,0.15); }
.issue-card.basicseo .issue-body { border-top: 1px solid rgba(34,211,160,0.15); }
.issue-card.passed   .issue-body { border-top: 1px solid rgba(34,211,160,0.1); }
.issue-desc { color: var(--text-muted); font-size: 13px; margin: 14px 0; line-height: 1.75; }
.sub-label  { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.url-chips  { display: flex; flex-wrap: wrap; gap: 6px; }
.url-chip   { background: var(--bg-deep); color: var(--sky); font-size: 11px; padding: 4px 10px; border-radius: 6px; font-family: var(--font-mono); border: 1px solid var(--border); }
.urls-section { margin-bottom: 16px; }
.fix-section  {}
.cms-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.cms-btn  { padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--text-dim); font-size: 11px; cursor: pointer; text-transform: capitalize; font-family: var(--font-mono); transition: all var(--transition); }
.cms-btn.active { border-color: var(--green); background: rgba(34,211,160,0.08); color: var(--green); }
.fix-steps { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.fix-step  { display: flex; gap: 12px; align-items: flex-start; }
.step-num  { background: rgba(34,211,160,0.08); color: var(--green); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; flex-shrink: 0; margin-top: 1px; }
.step-text { color: #cbd5e1; font-size: 12.5px; line-height: 1.7; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-ghost); font-size: 13px; }

/* ── Footer ── */
.results-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-dim); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-credit  { color: var(--border); font-size: 11px; }
.btn-dl { background: transparent; border: 1px solid rgba(34,211,160,0.18); color: var(--green); border-radius: var(--radius-sm); padding: 8px 20px; font-size: 11px; cursor: pointer; font-family: var(--font-mono); transition: all var(--transition); }
.btn-dl:hover { background: rgba(34,211,160,0.07); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(16px);  } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-dot{ 0%,100%{opacity:1} 50%{opacity:.3} }
.loading-dot { animation: pulse-dot 1.4s ease-in-out infinite; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .hero-panel { padding: 20px; gap: 20px; }
  .mini-scores { display: none; }
  .score-bars { min-width: 100%; }
  .results-nav { padding: 10px 16px; }
  .results-body { padding: 18px 14px 48px; }
  .basic-checks-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .vitals-legend { display: none; }
  .landing-sub { font-size: 14px; }
  .btn-primary { padding: 10px 18px; font-size: 12px; }
  .tab-btn { flex: none; min-width: calc(50% - 4px); text-align: center; }
}
@media (max-width: 420px) {
  .nav-left .badge, .nav-left .badge-score { display: none; }
  .basic-checks-grid { grid-template-columns: 1fr 1fr; }
}
