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

:root {
  --navy:   #0a0e1a;
  --navy2:  #111827;
  --blue:   #3b82f6;
  --blue2:  #2563eb;
  --green:  #22c55e;
  --yellow: #eab308;
  --red:    #ef4444;
  --slate:  #64748b;
  --light:  #f1f5f9;
  --white:  #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f3f4f6;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ── Header ───────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.logo {
  color: var(--white);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon { font-size: 1.4rem; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--slate);
  text-align: center;
  padding: 24px 0;
  font-size: 0.875rem;
  margin-top: auto;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,0.4); }

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-secondary:hover { background: var(--blue); color: var(--white); }

.btn-lg { padding: 16px 36px; font-size: 1.125rem; width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* Spinner inside button */
.btn-spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #f6f8ff 0%, #e8f0fe 50%, #f0f7ff 100%);
  padding: 80px 0 70px;
  text-align: center;
}

.hero-inner { max-width: 680px; }

.hero-badge {
  display: inline-block;
  background: rgba(59,130,246,0.1);
  color: var(--blue);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ── Audit Form ───────────────────────────────────────── */
.audit-form { max-width: 500px; margin: 0 auto; }

.form-group { margin-bottom: 14px; }

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  color: #1a1a1a;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder { color: #9ca3af; }
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }

.form-error {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
  color: #fca5a5;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.form-note {
  color: #475569;
  font-size: 0.8rem;
  margin-top: 12px;
  text-align: center;
}

/* ── Features ─────────────────────────────────────────── */
.features { padding: 60px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }

.feature-icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.feature-card p { color: var(--slate); font-size: 0.9rem; line-height: 1.6; }

/* ── Loading ──────────────────────────────────────────── */
.loading-section {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f6f8ff 0%, #e8f0fe 50%, #f0f7ff 100%);
  padding: 60px 20px;
}

.loading-inner { text-align: center; }

.spinner-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
}

.progress-ring { display: block; }

.progress-ring__track {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 10;
}

.progress-ring__fill {
  fill: none;
  stroke: var(--blue);
  stroke-width: 10;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.4s ease;
}

.progress-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
}

.pct-sign { font-size: 1rem; font-weight: 500; color: #6b7280; }

.loading-title {
  color: #1a1a1a;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.loading-url {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 32px;
  word-break: break-all;
}

.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
}

.step {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 16px;
  color: #6b7280;
  font-size: 0.9rem;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.step.active {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.3);
  color: var(--blue);
}

.step.done {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.3);
  color: var(--green);
}

/* ── Results ──────────────────────────────────────────── */
.results-section { padding: 48px 0 80px; }

.results-url {
  color: var(--slate);
  font-size: 0.9rem;
  margin-bottom: 32px;
  text-align: center;
}

/* Report gate */
.report-gate {
  background: linear-gradient(135deg, #f6f8ff 0%, #e8f0fe 100%);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  margin: 48px 0 32px;
  box-shadow: 0 8px 32px rgba(59,130,246,0.08);
}

.gate-lock-icon { font-size: 2.5rem; margin-bottom: 16px; }

.gate-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.gate-desc {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.gate-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 12px;
  flex-wrap: wrap;
}

.gate-input {
  flex: 1;
  min-width: 220px;
}

.gate-error { max-width: 480px; margin: 8px auto 0; text-align: left; }

.gate-note {
  color: #9ca3af;
  font-size: 0.8rem;
  margin-top: 10px;
}

.success-banner {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #16a34a;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 0.95rem;
  margin-bottom: 40px;
  text-align: center;
}

.gauge-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 48px;
}

.gauge-ring { display: block; }

.gauge-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 14;
}

.gauge-fill {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  stroke-dasharray: 502.65;
  stroke-dashoffset: 502.65;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-fill.green  { stroke: var(--green); }
.gauge-fill.yellow { stroke: var(--yellow); }
.gauge-fill.red    { stroke: var(--red); }

.gauge-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.1;
}

.gauge-score {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.04em;
}

.gauge-sub { font-size: 1rem; color: var(--slate); }
.gauge-caption { display: block; font-size: 0.75rem; color: var(--slate); margin-top: 4px; letter-spacing: 0.05em; text-transform: uppercase; }

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

/* Score Cards */
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.score-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 20px 22px;
  transition: transform .18s, box-shadow .18s;
  position: relative;
  overflow: hidden;
}
.score-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
}
.score-card.green-card  { border-color: #22c55e30; }
.score-card.green-card::before  { background: #22c55e; }
.score-card.yellow-card { border-color: #eab30830; }
.score-card.yellow-card::before { background: #eab308; }
.score-card.red-card    { border-color: #ef444430; }
.score-card.red-card::before    { background: #ef4444; }
.score-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.score-card.green-card:hover  { box-shadow: 0 8px 24px rgba(34,197,94,.1); }
.score-card.yellow-card:hover { box-shadow: 0 8px 24px rgba(234,179,8,.1); }
.score-card.red-card:hover    { box-shadow: 0 8px 24px rgba(239,68,68,.1); }

.score-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.score-card-name { font-weight: 600; font-size: 0.9rem; color: #f1f5f9; }

.score-card-num {
  font-size: 1.4rem;
  font-weight: 800;
}
.score-card-num.green  { color: #22c55e; }
.score-card-num.yellow { color: #eab308; }
.score-card-num.red    { color: #ef4444; }

.score-card-max { font-size: 0.8rem; color: #94a3b8; font-weight: 400; }

.score-bar-track {
  background: #1e293b;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}

.score-bar-fill {
  height: 100%;
  border-radius: 999px;
  width: 0%;
}
.score-bar-fill.green  { background: linear-gradient(90deg, #059669, #22c55e); }
.score-bar-fill.yellow { background: linear-gradient(90deg, #b45309, #eab308); }
.score-bar-fill.red    { background: linear-gradient(90deg, #b91c1c, #ef4444); }

.score-card-finding { font-size: 0.82rem; color: #94a3b8; line-height: 1.5; }

/* Quick Wins */
.quick-wins { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }

.quick-win-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.qw-number {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}

.qw-body { flex: 1; }
.qw-issue { font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.qw-fix { font-size: 0.875rem; color: var(--slate); }

.qw-severity {
  flex-shrink: 0;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Severity badges */
.severity-critical, .badge.severity-critical { background: #fee2e2; color: #b91c1c; }
.severity-high,     .badge.severity-high     { background: #fef3c7; color: #92400e; }
.severity-medium,   .badge.severity-medium   { background: #dbeafe; color: #1d4ed8; }
.severity-low,      .badge.severity-low      { background: #f0fdf4; color: #15803d; }

/* Findings table */
.table-wrap { overflow-x: auto; margin-bottom: 48px; border-radius: var(--radius); box-shadow: var(--shadow); }

.findings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.875rem;
}

.findings-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.findings-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.findings-table tr:last-child td { border-bottom: none; }
.findings-table tr:nth-child(even) td { background: #fafafa; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Results actions */
.results-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 16px;
}

/* Alert */
.alert {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.alert-error { background: #fee2e2; border: 1px solid #fca5a5; color: #b91c1c; }

/* ── AI insights ──────────────────────────────────────── */
.ai-summary-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 32px;
}

.ai-badge {
  display: inline-block;
  background: rgba(59,130,246,0.15);
  color: var(--blue);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ai-summary-text {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.ai-quick-win {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ai-qw-label {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.ai-qw-text { color: #94a3b8; font-size: 0.9rem; line-height: 1.6; }

.ai-action .qw-issue { color: #1e293b; font-weight: 500; }
.ai-tag {
  flex-shrink: 0;
  background: rgba(59,130,246,0.12);
  color: var(--blue);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  align-self: flex-start;
}

/* ── Dashboard ────────────────────────────────────────── */
.dash-section { padding: 40px 0 80px; }

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.dash-subtitle { color: var(--slate); font-size: 0.9rem; }

.dash-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-sm  { padding: 8px 18px; font-size: 0.85rem; }
.btn-xs  { padding: 5px 12px; font-size: 0.78rem; }
.btn-ghost {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--light); color: var(--navy); }

/* Stats */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label { font-size: 0.8rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; }

/* Dashboard card */
.dash-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.dash-card-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.dash-count { font-size: 0.85rem; color: var(--slate); }

.dash-table td, .dash-table th { padding: 11px 14px; }
.dash-link { color: var(--blue); text-decoration: none; font-size: 0.875rem; }
.dash-link:hover { text-decoration: underline; }

.dash-empty { padding: 40px; text-align: center; color: var(--slate); }

/* Score pill */
.score-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.score-pill.green  { background: rgba(34,197,94,0.12);  color: #15803d; }
.score-pill.yellow { background: rgba(234,179,8,0.12);  color: #92400e; }
.score-pill.red    { background: rgba(239,68,68,0.12);  color: #b91c1c; }

/* Status badge */
.status-complete { background: rgba(34,197,94,0.12);  color: #15803d; }
.status-running  { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.status-pending  { background: rgba(148,163,184,0.15); color: #475569; }
.status-failed   { background: rgba(239,68,68,0.12);  color: #b91c1c; }

/* Filters */
.dash-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}

.filter-select {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  background: var(--white);
  color: #1e293b;
  outline: none;
  cursor: pointer;
}
.filter-select:focus { border-color: var(--blue); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay[hidden] { display: none !important; }

.modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-header h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }

.modal-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--slate);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.modal-close:hover { background: var(--light); }

.modal-desc { color: var(--slate); font-size: 0.9rem; margin-bottom: 18px; }

.modal-quick-links {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.modal-divider {
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  margin-bottom: 14px;
  position: relative;
}

.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.modal-actions .btn { flex: 1; }

.action-btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.admin-report-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.admin-report-url {
  flex: 1;
  color: #94a3b8;
  font-size: 0.875rem;
  word-break: break-all;
}

.modal-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #15803d;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ── Professional Report (dashboard_report.html) ─────── */

/* Cover */
.rpt-cover {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}
.rpt-brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rpt-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.rpt-brand-ai { color: var(--blue); }
.rpt-brand-label { font-size: 0.85rem; color: #94a3b8; }

.rpt-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 24px 32px;
  margin-bottom: 16px;
}
.rpt-score-block { display: flex; align-items: baseline; gap: 4px; }
.rpt-score-num { font-size: 4rem; font-weight: 800; line-height: 1; }
.rpt-score-num.green { color: #22c55e; }
.rpt-score-num.yellow { color: #eab308; }
.rpt-score-num.red { color: #ef4444; }
.rpt-score-denom { font-size: 1.5rem; color: #94a3b8; }
.rpt-grade-block {
  margin-left: auto;
  text-align: center;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px 20px;
}
.rpt-grade-label { font-size: 0.75rem; color: #94a3b8; margin-bottom: 2px; }
.rpt-grade { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.rpt-grade.green { color: #22c55e; }
.rpt-grade.yellow { color: #eab308; }
.rpt-grade.red { color: #ef4444; }
.rpt-grade-status { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }
.rpt-grade-status.green { color: #22c55e; }
.rpt-grade-status.yellow { color: #eab308; }
.rpt-grade-status.red { color: #ef4444; }

.rpt-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.rpt-ai-box {
  background: rgba(59,130,246,0.08);
  border-top: 2px solid var(--blue);
  border-radius: 8px;
  padding: 16px 20px;
}
.rpt-ai-label {
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-align: center;
}
.rpt-ai-text { color: #94a3b8; font-size: 0.9rem; line-height: 1.6; text-align: center; margin: 0 0 10px; }
.rpt-quick-win {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(59,130,246,0.1);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.875rem;
}
.rpt-qw-label { color: var(--blue); font-weight: 700; white-space: nowrap; }
.rpt-qw-text { color: #e2e8f0; }

/* Sections */
.rpt-section {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
}
.rpt-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
}
.rpt-section-desc { font-size: 0.875rem; color: #64748b; margin: 6px 0 16px; }
.rpt-section-desc.ai-note { color: var(--blue); font-style: italic; }
.rpt-sub-title { font-size: 1rem; font-weight: 600; color: var(--navy); margin: 20px 0 10px; }

/* Issue count tiles */
.rpt-counts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.rpt-count-tile {
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.rpt-count-tile.critical { background: #fee2e2; }
.rpt-count-tile.high     { background: #ffedd5; }
.rpt-count-tile.medium   { background: #fef9c3; }
.rpt-count-tile.low      { background: #dbeafe; }
.rpt-count-num { font-size: 2rem; font-weight: 800; line-height: 1; }
.rpt-count-tile.critical .rpt-count-num { color: #ef4444; }
.rpt-count-tile.high     .rpt-count-num { color: #f97316; }
.rpt-count-tile.medium   .rpt-count-num { color: #eab308; }
.rpt-count-tile.low      .rpt-count-num { color: #3b82f6; }
.rpt-count-label { font-size: 0.75rem; color: #64748b; margin-top: 4px; font-weight: 600; }

/* Top 3 priorities */
.rpt-priorities { display: flex; flex-direction: column; gap: 8px; }
.rpt-priority-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 8px;
}
.rpt-priority-row.sev-critical { background: #fee2e2; border-left: 3px solid #ef4444; }
.rpt-priority-row.sev-high     { background: #ffedd5; border-left: 3px solid #f97316; }
.rpt-priority-row.sev-medium   { background: #fef9c3; border-left: 3px solid #eab308; }
.rpt-priority-row.sev-low      { background: #dbeafe; border-left: 3px solid #3b82f6; }
.rpt-priority-num { font-size: 1.3rem; font-weight: 800; color: #94a3b8; width: 32px; }
.rpt-priority-body { flex: 1; }
.rpt-priority-issue { font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 3px; }
.rpt-priority-fix { font-size: 0.825rem; color: #64748b; }
.rpt-priority-sev { font-size: 0.7rem; font-weight: 700; color: #94a3b8; padding-top: 2px; }

/* Categories */
.rpt-categories { display: flex; flex-direction: column; gap: 0; }
.rpt-cat-row {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.rpt-cat-row:last-child { border-bottom: none; }
.rpt-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 12px;
}
.rpt-cat-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); display: block; }
.rpt-cat-desc { font-size: 0.78rem; color: #94a3b8; display: block; margin-top: 2px; }
.rpt-cat-right { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.rpt-cat-score { font-weight: 700; font-size: 0.9rem; }
.rpt-cat-score.green { color: #22c55e; }
.rpt-cat-score.yellow { color: #eab308; }
.rpt-cat-score.red { color: #ef4444; }
.rpt-cat-weight { font-size: 0.75rem; color: #94a3b8; background: #f1f5f9; padding: 2px 8px; border-radius: 20px; }

/* Severity grouped findings */
.rpt-sev-group { margin-bottom: 20px; }
.rpt-sev-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-radius: 6px 6px 0 0;
  font-size: 0.825rem;
  font-weight: 700;
}
.rpt-sev-header.sev-critical { background: #ef4444; color: #fff; }
.rpt-sev-header.sev-high     { background: #f97316; color: #fff; }
.rpt-sev-header.sev-medium   { background: #eab308; color: #fff; }
.rpt-sev-header.sev-low      { background: #3b82f6; color: #fff; }
.rpt-sev-label { letter-spacing: 0.05em; }
.rpt-sev-count { font-weight: 400; opacity: 0.85; }
.rpt-sev-table-wrap .findings-table { border-radius: 0 0 6px 6px; overflow: hidden; }

/* Action plan */
.rpt-actions { display: flex; flex-direction: column; gap: 0; }
.rpt-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.rpt-action-row:nth-child(even) { background: #f8fafc; }
.rpt-action-row:last-child { border-bottom: none; }
.rpt-action-num { font-size: 1.3rem; font-weight: 800; color: var(--blue); width: 36px; flex-shrink: 0; }
.rpt-action-text { flex: 1; font-size: 0.875rem; color: var(--navy); line-height: 1.5; }
.rpt-action-effort {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.effort-quick  { background: #dcfce7; color: #166534; }
.effort-medium { background: #fef9c3; color: #713f12; }
.effort-high   { background: #ffedd5; color: #7c2d12; }

/* QuantumTaskAI section */
.rpt-qta-section { background: var(--navy) !important; border-color: transparent !important; }
.rpt-qta-section .rpt-section-title { color: #fff; border-bottom-color: var(--blue); }
.rpt-qta-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.rpt-qta-title { font-size: 1.2rem; color: #fff; margin: 0 0 8px; }
.rpt-qta-intro { font-size: 0.875rem; color: #94a3b8; line-height: 1.6; max-width: 600px; margin: 0; }

.rpt-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 24px; }
.rpt-service-card {
  border-radius: 8px;
  padding: 16px;
}
.rpt-service-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; }
.rpt-service-bullets { margin: 0; padding-left: 16px; }
.rpt-service-bullets li { font-size: 0.8rem; color: #374151; margin-bottom: 5px; line-height: 1.4; }

.rpt-cta-box {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.rpt-cta-title { font-size: 1.1rem; color: #fff; margin: 0 0 8px; }
.rpt-cta-desc { font-size: 0.875rem; color: #94a3b8; margin: 0 0 16px; line-height: 1.5; }
.rpt-cta-btn { font-size: 1rem; padding: 12px 28px; }
.rpt-cta-note { font-size: 0.78rem; color: #64748b; margin: 10px 0 0; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 50px 0 40px; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle br { display: none; }
  .score-grid { grid-template-columns: 1fr; }
  .results-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-header { flex-direction: column; }
  .gate-form { flex-direction: column; }
}

/* Public report styles moved inline to public_report.html (standalone page) */

/* Sticky nav */
.pub-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,26,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 2rem; gap: 1rem;
}
.pub-nav-brand { font-weight: 800; font-size: .95rem; color: #fff; letter-spacing: -.01em; }
.pub-nav-brand span { color: #3b82f6; }
.pub-nav-right { display: flex; align-items: center; gap: .75rem; }
.pub-nav-score-label { font-size: .78rem; color: #64748b; }
.pub-nav-pill {
  font-weight: 700; font-size: .8rem; padding: .2rem .65rem;
  border-radius: 999px; display: inline-block;
}
.pub-nav-pill.green  { background: rgba(34,197,94,.15);  color: #22c55e; }
.pub-nav-pill.yellow { background: rgba(234,179,8,.15);  color: #eab308; }
.pub-nav-pill.red    { background: rgba(239,68,68,.15);  color: #ef4444; }

/* Hero */
.pub-hero {
  background: linear-gradient(135deg, #070b17 0%, #0d1d3a 55%, #070b17 100%);
  padding: 3.5rem 1.5rem 2.5rem; text-align: center; position: relative; overflow: hidden;
}
.pub-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% -10%, rgba(59,130,246,.14), transparent);
  pointer-events: none;
}
.pub-hero-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: #3b82f6;
  text-transform: uppercase; margin-bottom: .75rem; position: relative;
}
.pub-hero-url {
  font-size: .9rem; color: #64748b; margin-bottom: 2rem; word-break: break-all;
  position: relative;
}
.pub-hero-url strong { color: #cbd5e1; }

/* Gauge card */
.pub-gauge-card {
  display: inline-flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px; padding: 2rem 2.5rem; margin-bottom: 1.25rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: relative;
}
.pub-gauge-wrap { position: relative; width: 170px; height: 170px; }
.pub-gauge-wrap svg { transform: rotate(-90deg); }
.pub-gauge-track { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 13; }
.pub-gauge-fill {
  fill: none; stroke-width: 13; stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(.4,0,.2,1);
}
.pub-gauge-fill.green  { stroke: #22c55e; filter: drop-shadow(0 0 8px rgba(34,197,94,.5)); }
.pub-gauge-fill.yellow { stroke: #eab308; filter: drop-shadow(0 0 8px rgba(234,179,8,.5)); }
.pub-gauge-fill.red    { stroke: #ef4444; filter: drop-shadow(0 0 8px rgba(239,68,68,.5)); }
.pub-gauge-label {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.pub-gauge-num  { font-size: 2.6rem; font-weight: 900; line-height: 1; color: #f1f5f9; }
.pub-gauge-denom { font-size: .8rem; color: #475569; }
.pub-gauge-cap  { font-size: .62rem; letter-spacing: .09em; text-transform: uppercase; color: #475569; margin-top: .2rem; }

/* Grade badge */
.pub-grade-row { display: flex; align-items: center; gap: .75rem; justify-content: center; margin-top: .75rem; }
.pub-grade-chip {
  font-size: 1.1rem; font-weight: 900; padding: .2rem .75rem;
  border-radius: 8px; line-height: 1.4;
}
.pub-grade-chip.green  { background: rgba(34,197,94,.15); color: #22c55e; border: 1px solid rgba(34,197,94,.25); }
.pub-grade-chip.yellow { background: rgba(234,179,8,.15);  color: #eab308; border: 1px solid rgba(234,179,8,.25); }
.pub-grade-chip.red    { background: rgba(239,68,68,.15);  color: #ef4444; border: 1px solid rgba(239,68,68,.25); }
.pub-grade-status { font-size: .82rem; color: #94a3b8; }

/* AI summary in hero */
.pub-ai-card {
  max-width: 640px; margin: 1.25rem auto 0;
  background: rgba(59,130,246,.07); border: 1px solid rgba(59,130,246,.18);
  border-radius: 14px; padding: 1.25rem 1.5rem; text-align: left; position: relative;
}
.pub-ai-badge {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; color: #3b82f6;
  text-transform: uppercase; margin-bottom: .5rem;
}
.pub-ai-text { font-size: .875rem; color: #94a3b8; line-height: 1.65; margin: 0 0 .75rem; }
.pub-ai-qw {
  display: flex; align-items: flex-start; gap: .5rem;
  background: rgba(59,130,246,.1); border-radius: 8px; padding: .65rem .9rem; font-size: .825rem;
}
.pub-ai-qw-label { color: #3b82f6; font-weight: 700; white-space: nowrap; }
.pub-ai-qw-text  { color: #e2e8f0; }

/* Meta row */
.pub-meta-row {
  display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
  font-size: .8rem; color: #475569; margin: 1rem 0 0; position: relative;
}
.pub-meta-row span { display: flex; align-items: center; gap: .35rem; }

/* Content wrapper */
.pub-content { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }

/* Sections */
.pub-section {
  background: #fff; border-radius: 16px; padding: 1.75rem 2rem;
  margin-bottom: 1.25rem; border: 1px solid #e8edf3;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.pub-section-title {
  font-size: 1.05rem; font-weight: 800; color: #0a0e1a;
  margin: 0 0 1rem; display: flex; align-items: center; gap: .75rem;
}
.pub-section-title::after {
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(90deg, #3b82f6, transparent);
  border-radius: 1px;
}
.pub-section-desc { font-size: .825rem; color: #64748b; margin: -0.5rem 0 1rem; }

/* Stat tiles */
.pub-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .875rem; margin-bottom: 1.5rem;
}
.pub-stat-tile { border-radius: 12px; padding: 1.1rem 1rem; text-align: center; }
.pub-stat-tile.critical { background: #fee2e2; }
.pub-stat-tile.high     { background: #ffedd5; }
.pub-stat-tile.medium   { background: #fef9c3; }
.pub-stat-tile.low      { background: #dbeafe; }
.pub-stat-num { font-size: 2.1rem; font-weight: 900; line-height: 1; }
.pub-stat-tile.critical .pub-stat-num { color: #dc2626; }
.pub-stat-tile.high .pub-stat-num     { color: #ea580c; }
.pub-stat-tile.medium .pub-stat-num   { color: #ca8a04; }
.pub-stat-tile.low .pub-stat-num      { color: #2563eb; }
.pub-stat-label {
  font-size: .68rem; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .05em; margin-top: .3rem;
}

/* Benchmark table */
.pub-bench-table { width: 100%; border-collapse: collapse; font-size: .845rem; }
.pub-bench-table th {
  background: #f8fafc; font-weight: 700; color: #64748b;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  padding: .6rem 1rem; text-align: left; border-bottom: 2px solid #e2e8f0;
}
.pub-bench-table td { padding: .7rem 1rem; border-bottom: 1px solid #f1f5f9; color: #0a0e1a; }
.pub-bench-table tr:last-child td { border-bottom: none; }
.pub-bench-table td:first-child { color: #64748b; font-size: .8rem; }
.pub-bench-highlight { color: #1d4ed8; font-weight: 700; }

/* Priority rows */
.pub-priorities { display: flex; flex-direction: column; gap: .6rem; }
.pub-priority-row {
  display: flex; align-items: flex-start; gap: 1rem; padding: .9rem 1rem;
  border-radius: 10px; border-left: 3px solid transparent;
}
.pub-priority-row.sev-critical { background: #fef2f2; border-left-color: #ef4444; }
.pub-priority-row.sev-high     { background: #fff7ed; border-left-color: #f97316; }
.pub-priority-row.sev-medium   { background: #fefce8; border-left-color: #eab308; }
.pub-priority-row.sev-low      { background: #eff6ff; border-left-color: #3b82f6; }
.pub-priority-num { font-size: 1.2rem; font-weight: 900; color: #cbd5e1; width: 28px; flex-shrink: 0; }
.pub-priority-body { flex: 1; }
.pub-priority-issue { font-weight: 600; font-size: .875rem; color: #0f172a; margin-bottom: .2rem; }
.pub-priority-fix   { font-size: .8rem; color: #64748b; }
.pub-priority-sev   { font-size: .65rem; font-weight: 700; color: #94a3b8; padding-top: .2rem; text-transform: uppercase; }

/* Score breakdown bars */
.pub-cat-row { padding: .9rem 0; border-bottom: 1px solid #f1f5f9; }
.pub-cat-row:last-child { border-bottom: none; }
.pub-cat-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .45rem; }
.pub-cat-left { flex: 1; min-width: 0; }
.pub-cat-name { font-weight: 700; font-size: .875rem; color: #0a0e1a; display: block; }
.pub-cat-desc { font-size: .72rem; color: #94a3b8; display: block; margin-top: .1rem; }
.pub-cat-right { display: flex; align-items: center; gap: .75rem; white-space: nowrap; padding-left: 1rem; }
.pub-cat-score { font-weight: 800; font-size: .875rem; }
.pub-cat-score.green  { color: #16a34a; }
.pub-cat-score.yellow { color: #b45309; }
.pub-cat-score.red    { color: #dc2626; }
.pub-cat-weight {
  font-size: .7rem; color: #94a3b8; background: #f1f5f9;
  padding: .15rem .55rem; border-radius: 999px;
}
.pub-bar-track { height: 7px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.pub-bar-fill { height: 100%; border-radius: 999px; width: 0%; transition: width 1.3s cubic-bezier(.4,0,.2,1); }
.pub-bar-fill.green  { background: linear-gradient(90deg,#16a34a,#22c55e); }
.pub-bar-fill.yellow { background: linear-gradient(90deg,#b45309,#eab308); }
.pub-bar-fill.red    { background: linear-gradient(90deg,#dc2626,#f87171); }

/* Accordion findings */
.pub-accordion { border: 1px solid #e8edf3; border-radius: 12px; overflow: hidden; margin-bottom: .875rem; }
.pub-acc-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.1rem; cursor: pointer; background: #f8fafc;
  border: none; width: 100%; text-align: left; gap: 1rem;
}
.pub-acc-btn.sev-critical { background: #fef2f2; }
.pub-acc-btn.sev-high     { background: #fff7ed; }
.pub-acc-btn.sev-medium   { background: #fefce8; }
.pub-acc-btn.sev-low      { background: #eff6ff; }
.pub-acc-left  { display: flex; align-items: center; gap: .75rem; }
.pub-acc-badge {
  font-size: .65rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: .2rem .55rem; border-radius: 5px; color: #fff;
}
.pub-acc-badge.critical { background: #dc2626; }
.pub-acc-badge.high     { background: #ea580c; }
.pub-acc-badge.medium   { background: #ca8a04; }
.pub-acc-badge.low      { background: #2563eb; }
.pub-acc-title { font-size: .85rem; font-weight: 600; color: #0f172a; }
.pub-acc-count { font-size: .78rem; color: #64748b; }
.pub-acc-chevron { font-size: .7rem; color: #94a3b8; transition: transform .22s; flex-shrink: 0; }
.pub-acc-btn[aria-expanded="true"] .pub-acc-chevron { transform: rotate(180deg); }
.pub-acc-body { display: none; }
.pub-acc-body.open { display: block; }
.pub-acc-body table { border-radius: 0; border-top: 1px solid #e8edf3; }

/* Action plan timeline */
.pub-timeline { display: flex; flex-direction: column; gap: .65rem; }
.pub-timeline-item {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem;
  border-radius: 12px; background: #f8fafc; border: 1px solid #f1f5f9;
  transition: box-shadow .2s, transform .2s;
}
.pub-timeline-item:hover { box-shadow: 0 4px 18px rgba(59,130,246,.1); transform: translateX(2px); }
.pub-timeline-num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff; font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(59,130,246,.35);
}
.pub-timeline-body { flex: 1; }
.pub-timeline-text { font-size: .865rem; color: #0f172a; line-height: 1.55; margin-bottom: .35rem; }
.pub-timeline-effort {
  display: inline-block; font-size: .65rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.pub-timeline-effort.quick    { background: #dcfce7; color: #15803d; }
.pub-timeline-effort.medium   { background: #fef9c3; color: #92400e; }
.pub-timeline-effort.strategic { background: #ede9fe; color: #6d28d9; }

/* QTA dark section */
.pub-qta-section {
  background: linear-gradient(135deg, #07091a 0%, #0d1635 100%);
  border-radius: 20px; padding: 2rem; margin-bottom: 1.25rem;
  border: 1px solid rgba(99,102,241,.15);
}
.pub-qta-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pub-qta-title { font-size: 1.1rem; font-weight: 800; color: #fff; margin: 0 0 .5rem; line-height: 1.3; }
.pub-qta-intro { font-size: .845rem; color: #64748b; line-height: 1.6; max-width: 580px; margin: 0; }

/* Pricing cards */
.pub-pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.pub-pkg-card {
  border-radius: 14px; padding: 1.3rem; position: relative;
  transition: transform .2s, box-shadow .2s; border: 1px solid transparent;
}
.pub-pkg-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,.25); }
.pub-pkg-card.foundation  { background: linear-gradient(145deg,#ecfdf5,#d1fae5); border-color: #a7f3d0; }
.pub-pkg-card.accelerator { background: linear-gradient(145deg,#eef2ff,#e0e7ff); border-color: #c7d2fe; }
.pub-pkg-card.elite       { background: linear-gradient(145deg,#faf5ff,#ede9fe); border-color: #ddd6fe; }
.pub-pkg-badge {
  font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .22rem .55rem; border-radius: 5px; display: inline-block; margin-bottom: .65rem;
}
.pub-pkg-card.foundation  .pub-pkg-badge { background: #059669; color: #fff; }
.pub-pkg-card.accelerator .pub-pkg-badge { background: #4338ca; color: #fff; }
.pub-pkg-card.elite       .pub-pkg-badge { background: #7c3aed; color: #fff; }
.pub-pkg-name { font-size: .95rem; font-weight: 800; color: #0f172a; margin-bottom: .2rem; }
.pub-pkg-for  { font-size: .73rem; color: #64748b; margin-bottom: .8rem; }
.pub-pkg-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.pub-pkg-bullets li {
  font-size: .775rem; color: #374151; display: flex; align-items: flex-start;
  gap: .4rem; line-height: 1.4;
}
.pub-pkg-bullets li::before { content: '✓'; font-weight: 700; flex-shrink: 0; margin-top: .05rem; }
.pub-pkg-card.foundation  .pub-pkg-bullets li::before { color: #059669; }
.pub-pkg-card.accelerator .pub-pkg-bullets li::before { color: #4338ca; }
.pub-pkg-card.elite       .pub-pkg-bullets li::before { color: #7c3aed; }

/* Results metrics */
.pub-metrics-row { display: grid; grid-template-columns: repeat(3,1fr); gap: .875rem; margin: 1.1rem 0 1.5rem; }
.pub-metric-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 1.1rem; text-align: center;
}
.pub-metric-num { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.pub-metric-label { font-size: .68rem; color: #64748b; margin-top: .3rem; text-transform: uppercase; letter-spacing: .04em; }

/* CTA box */
.pub-cta-box {
  background: linear-gradient(135deg, rgba(59,130,246,.1), rgba(99,102,241,.1));
  border: 1px solid rgba(99,102,241,.22); border-radius: 16px;
  padding: 2rem; text-align: center;
}
.pub-cta-title { font-size: 1.2rem; font-weight: 800; color: #fff; margin: 0 0 .5rem; }
.pub-cta-desc  { font-size: .875rem; color: #94a3b8; margin: 0 0 1.25rem; line-height: 1.55; }
.pub-cta-note  { font-size: .75rem; color: #475569; margin: .75rem 0 0; }

/* Bottom actions */
.pub-actions { display: flex; gap: .875rem; justify-content: center; flex-wrap: wrap; padding: 1rem 0 2rem; }

/* Fade-in on scroll */
.pub-fade { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.pub-fade.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
  .pub-nav { padding: .6rem 1rem; }
  .pub-hero { padding: 2.5rem 1rem 2rem; }
  .pub-gauge-card { padding: 1.5rem 1.75rem; }
  .pub-gauge-wrap { width: 145px; height: 145px; }
  .pub-gauge-num { font-size: 2.1rem; }
  .pub-content { padding: 1.25rem 1rem 2rem; }
  .pub-section { padding: 1.25rem 1.1rem; }
  .pub-stats-grid { grid-template-columns: repeat(2,1fr); }
  .pub-pricing-grid { grid-template-columns: 1fr; }
  .pub-metrics-row { grid-template-columns: repeat(3,1fr); }
  .pub-qta-section { padding: 1.5rem 1.1rem; }
  .pub-actions .btn { flex: 1; min-width: 160px; }
}
