/* ── SAMPLE AUDIT PAGE ── */

.sample-audit-page {
  padding-bottom: 0;
}

/* ── HERO ── */
.sa-hero {
  padding: 56px 48px 64px;
  border-bottom: 1px solid var(--border);
}
.sa-hero-inner { max-width: 900px; margin: 0 auto; }

.sa-report-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.sa-report-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(245,158,11,0.15);
  color: var(--accent);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 4px;
  padding: 4px 10px;
}
.sa-report-id {
  font-size: 12px;
  color: var(--muted);
}

.sa-hero-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 12px;
}
.sa-hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 36px;
}

.sa-client-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 24px 28px;
  max-width: 820px;
}
.sa-logo { flex-shrink: 0; }
.sa-client-info { flex: 1; }
.sa-client-name {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px;
}
.sa-client-type { font-size: 13px; color: var(--muted); }
.sa-client-right { text-align: right; }
.sa-auditor {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2px;
}
.sa-auditor-role { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.sa-audit-date { font-size: 12px; color: var(--muted); }

/* ── SECTIONS ── */
.sa-section {
  padding: 72px 48px;
  border-bottom: 1px solid var(--border);
}
.sa-section--alt {
  background: rgba(255,255,255,0.015);
}
.sa-section-inner { max-width: 960px; margin: 0 auto; }

.sa-section-header {
  display: flex;
  align-items: start;
  gap: 20px;
  margin-bottom: 40px;
}
.sa-section-num {
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-top: 4px;
  flex-shrink: 0;
  letter-spacing: -0.04em;
}
.sa-section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.sa-section-title {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.2;
}

/* ── CARDS ── */
.sa-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 32px 36px;
  margin-bottom: 28px;
}
.sa-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.sa-card-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 24px;
}
.sa-insight {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(245,158,11,0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── CWV GRID ── */
.sa-cwv-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  align-items: center;
}
.sa-donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.sa-donut { width: 120px; height: 120px; }
.sa-donut-label { font-size: 11px; color: var(--muted); text-align: center; }

.sa-cwv-items { display: flex; flex-direction: column; gap: 16px; }
.sa-cwv-item { display: flex; align-items: center; gap: 12px; }
.sa-cwv-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.sa-cwv-info { display: flex; flex-direction: column; gap: 2px; }
.sa-cwv-name { font-size: 14px; color: var(--fg); font-weight: 500; }
.sa-cwv-val { font-size: 12px; }

/* ── TABLES ── */
.sa-table-wrap { overflow-x: auto; margin-top: 16px; }
.sa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sa-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.sa-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--fg);
  vertical-align: top;
  line-height: 1.45;
}
.sa-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.sa-table tbody tr:last-child td { border-bottom: none; }

.sa-td-url { font-family: 'Syne', sans-serif; font-size: 12px; color: var(--accent); }
.sa-td-val-ok { color: #10b981; font-size: 12px; }
.sa-td-val-warn { color: #f59e0b; font-size: 12px; }
.sa-td-val-err { color: #ef4444; font-size: 12px; }

/* Grades */
.sa-grade {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.sa-grade--red   { background: rgba(239,68,68,0.15); color: #ef4444; }
.sa-grade--yellow{ background: rgba(245,158,11,0.15); color: #f59e0b; }
.sa-grade--green { background: rgba(16,185,129,0.15); color: #10b981; }

/* Rank cells */
.sa-rank { font-size: 12px; font-weight: 600; }
.sa-rank--gap  { color: var(--muted); }
.sa-rank--comp { color: var(--muted); font-style: italic; }
.sa-rank--pos  { color: #10b981; }

/* Status badges */
.sa-status { font-size: 12px; font-weight: 600; }
.sa-status--ok   { color: #10b981; }
.sa-status--warn { color: #f59e0b; }
.sa-status--err  { color: #ef4444; }

/* ── BACKLINK BARS ── */
.sa-backlink-chart { margin-top: 24px; }
.sa-bar-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.sa-bar-label {
  font-size: 13px;
  color: var(--muted);
  min-width: 90px;
}
.sa-bar-track {
  flex: 1;
  height: 24px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
  max-width: 300px;
}
.sa-bar-fill { height: 100%; border-radius: 4px; }
.sa-bar-fill--red   { background: #ef4444; }
.sa-bar-fill--green { background: #10b981; }
.sa-bar-val { font-size: 12px; font-weight: 600; min-width: 60px; }
.sa-bar-val--red   { color: #ef4444; }
.sa-bar-val--green { color: #10b981; }
.sa-bar-divider { border-top: 1px dashed rgba(255,255,255,0.1); margin: 12px 0; }
.sa-bar-caption { font-size: 13px; color: var(--muted); }

/* ── GBP BARS ── */
.sa-gbp-bars { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.sa-gbp-bar-row { display: flex; align-items: center; gap: 12px; }
.sa-gbp-bar-label { font-size: 13px; color: var(--fg); min-width: 160px; font-weight: 500; }
.sa-gbp-track { flex: 1; height: 10px; background: rgba(255,255,255,0.06); border-radius: 5px; overflow: hidden; max-width: 320px; }
.sa-gbp-fill { height: 100%; border-radius: 5px; }
.sa-gbp-pct { font-size: 12px; color: var(--muted); min-width: 130px; }

/* ── CANDLE CHART ── */
.sa-candle-chart { margin-top: 20px; display: flex; flex-direction: column; gap: 20px; }
.sa-candle-row { display: flex; align-items: center; gap: 16px; }
.sa-candle-label { font-size: 13px; color: var(--muted); min-width: 44px; font-weight: 500; }
.sa-candle-bars { display: flex; align-items: flex-end; gap: 10px; flex: 1; }
.sa-candle-item { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.sa-candle-bar { width: 28px; border-radius: 3px 3px 0 0; min-height: 4px; }
.sa-candle-month { font-size: 10px; color: var(--muted); }
.sa-candle-right { font-size: 13px; color: var(--muted); min-width: 160px; }

/* ── REVIEW GRID ── */
.sa-review-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  align-items: center;
}
.sa-review-legend { display: flex; flex-direction: column; gap: 12px; }
.sa-review-item { display: flex; align-items: center; gap: 10px; }
.sa-review-item.sa-review-total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.sa-review-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sa-review-label { font-size: 13px; color: var(--muted); min-width: 130px; }
.sa-review-count { font-size: 13px; color: var(--fg); font-weight: 600; }

/* ── RECOMMENDATIONS ── */
.sa-recs-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 32px 36px;
  margin-bottom: 28px;
}
.sa-recs-header { display: flex; align-items: start; gap: 16px; margin-bottom: 28px; }
.sa-recs-icon {
  width: 40px; height: 40px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sa-recs-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.sa-recs-sub { font-size: 13px; color: var(--muted); }

.sa-recs-list { display: flex; flex-direction: column; gap: 24px; }
.sa-rec-item {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.sa-rec-item:first-child { border-top: none; padding-top: 0; }

.sa-rec-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.sa-rec-name { font-size: 15px; font-weight: 600; color: var(--fg); flex: 1; }
.sa-effort, .sa-impact {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sa-effort--low    { background: rgba(16,185,129,0.12); color: #10b981; }
.sa-effort--medium { background: rgba(245,158,11,0.12); color: #f59e0b; }
.sa-effort--high   { background: rgba(239,68,68,0.12); color: #ef4444; }
.sa-impact--low    { background: rgba(16,185,129,0.12); color: #10b981; }
.sa-impact--medium { background: rgba(245,158,11,0.12); color: #f59e0b; }
.sa-impact--high   { background: rgba(239,68,68,0.12); color: #ef4444; }

.sa-rec-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── FOOTER CTA ── */
.sa-cta-section {
  padding: 96px 48px;
  text-align: center;
  background: linear-gradient(180deg, rgba(245,158,11,0.04) 0%, transparent 100%);
}
.sa-cta-inner { max-width: 640px; margin: 0 auto; }
.sa-cta-headline {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 16px;
}
.sa-cta-sub { font-size: 17px; color: var(--muted); line-height: 1.65; margin-bottom: 32px; }
.sa-cta-footnote { font-size: 13px; color: rgba(148,163,184,0.6); margin-top: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sa-hero { padding: 40px 24px 48px; }
  .sa-client-card { flex-direction: column; align-items: start; }
  .sa-client-right { text-align: left; }
  .sa-section { padding: 48px 24px; }
  .sa-card { padding: 24px 20px; }
  .sa-cwv-grid { grid-template-columns: 1fr; gap: 20px; }
  .sa-donut-wrap { flex-direction: row; align-items: center; gap: 16px; }
  .sa-review-grid { grid-template-columns: 1fr; gap: 24px; }
  .sa-gbp-bar-label { min-width: 120px; }
  .sa-candle-label { display: none; }
  .sa-recs-block { padding: 24px 20px; }
  .sa-recs-header { gap: 12px; }
  .sa-cta-section { padding: 64px 24px; }
  .sa-table { font-size: 12px; }
  .sa-table th, .sa-table td { padding: 8px 8px; }
}