:root {
  color-scheme: light;
  --color-bg: #eaeaea;
  --color-shell: #eaeaea;
  --color-surface: #ffffff;
  --color-surface-soft: #f9fafb;
  --color-text: #14140c;
  --color-muted: #6b7280;
  --color-muted-2: #9ca3af;
  --color-border: #f3f4f6;
  --color-primary: #ea5127;
  --color-primary-hover: #d44820;
  --color-primary-soft: #fff7ed;
  --color-critical: #ef4444;
  --color-critical-bg: #fef2f2;
  --color-important: #f97316;
  --color-important-bg: #fff7ed;
  --color-recommendation: #3b82f6;
  --color-recommendation-bg: #eff6ff;
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-info: #64748b;
  --color-info-bg: #f1f5f9;
  --radius-xl: 24px;
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 22px 60px rgba(20, 20, 20, 0.06);
  --shadow-card: 0 2px 15px -3px rgba(0, 0, 0, 0.03);
  --shadow-card-accent: 0 8px 20px -6px rgba(234, 81, 39, 0.4);
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --topbar-h: auto;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
ul, ol { list-style: none; }

.is-hidden { display: none !important; }

/* ── Report Page Layout ── */
.report-page {
  background: var(--color-bg);
  min-height: 100vh;
  padding-bottom: 80px;
}

.report-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 0;
}

.report-section {
  margin-top: 32px;
}

.report-section:first-child {
  margin-top: 0;
}

/* ── Topbar ── */
.topbar {
  padding: 24px 32px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 1280px;
  margin: 0 auto;
  border-radius: 25px;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0; /* Растягиваем на всю шапку (top, right, bottom, left: 0) */
  z-index: -1; /* Помещаем позади контента шапки */
  border-radius: inherit; /* Наследуем 25px */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}

.topbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 25px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.brand__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
}

.brand__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.topnav-pills {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
  overflow-x: auto;
  max-width: 100%;
}

.nav-pill {
  padding: 8px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  transition: all 150ms;
  white-space: nowrap;
}

.nav-pill:hover {
  color: var(--color-text);
  background: var(--color-surface-soft);
}

.nav-pill.is-active {
  background: var(--color-text);
  color: #fff;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn-round {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: color 140ms;
  position: relative;
}

.icon-btn-round:hover { color: var(--color-text); }

.notification-dot {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 2px solid var(--color-surface);
}

.primary-pill-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background 140ms;
  box-shadow: 0 4px 14px rgba(234, 81, 39, 0.39);
  text-decoration: none;
}

.primary-pill-btn:hover { background: var(--color-primary-hover); }

/* ── Report Header ── */
.report-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.report-header h1 {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.report-meta {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.meta-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #d1d5db;
  border-radius: 50%;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  width: fit-content;
}

.status-badge--critical { background: var(--color-critical-bg); color: var(--color-critical); }
.status-badge--warning { background: var(--color-important-bg); color: var(--color-important); }
.status-badge--ok { background: var(--color-success-bg); color: var(--color-success); }

/* ── Hero Grid ── */
.hero-grid {
  display: grid;
  grid-template-columns: 6fr 3fr 4fr;
  gap: 24px;
}

.report-card {
  background: var(--color-surface);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-surface);
}

/* ── Score Card ── */
.hero-score-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}

.score-ring-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.score-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring-track {
  fill: none;
  stroke: #f1f5f9;
  stroke-width: 8;
}

.score-ring-value {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}

.score-ring-critical { stroke: var(--color-critical); }
.score-ring-warning { stroke: var(--color-important); }
.score-ring-ok { stroke: var(--color-success); }

.score-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-ring-number {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.score-ring-max {
  font-size: 12px;
  color: var(--color-muted-2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-text-side {
  text-align: left;
}

.score-text-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.score-text-desc {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.score-text-hint {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 140ms;
}

.score-text-hint:hover { color: var(--color-primary-hover); }

/* ── Fine Card ── */
.fine-card {
  background: linear-gradient(135deg, #ff8f68, #ea5127);
  border-radius: 24px;
  padding: 32px;
  color: #fff;
  box-shadow: var(--shadow-card-accent);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.fine-card__decor {
  position: absolute;
  right: -24px;
  top: -24px;
  width: 128px;
  height: 128px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(32px);
}

.fine-card__top {
  position: relative;
  z-index: 1;
}

.fine-card__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.fine-card__label {
  color: rgba(255, 251, 245, 0.9);
  font-weight: 500;
  font-size: 15px;
}

.fine-card__info-icon {
  color: rgba(255, 243, 224, 0.7);
}

.fine-card__note {
  font-size: 14px;
  color: rgba(255, 224, 192, 0.8);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 200px;
}

.fine-card__bottom {
  position: relative;
  z-index: 1;
}

.fine-card__prefix {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 224, 192, 0.9);
}

.fine-card__value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.fine-card__value--empty {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.85);
}

.fine-card__note--empty {
  font-size: 13px;
  margin-top: 4px;
}

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--color-surface);
  padding: 20px;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px
}

.stat-card__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
}

.stat-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.stat-card__icon--critical { background: var(--color-critical-bg); color: var(--color-critical); }
.stat-card__icon--important { background: var(--color-important-bg); color: var(--color-important); }
.stat-card__icon--recommendation { background: var(--color-recommendation-bg); color: var(--color-recommendation); }
.stat-card__icon--success { background: var(--color-success-bg); color: var(--color-success); }

.stat-card__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
}

/* ── Main Risk Grid ── */
.main-risk-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

/* ── Top Problems Panel ── */
.top-problems-panel {
  background: var(--color-surface);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-surface);
}

.top-problems-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.top-problems-subtitle {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.top-problems-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.top-problem-card {
  padding: 20px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 200ms;
}

.top-problem-card--accent {
  background: linear-gradient(135deg, #ff8f68, #ea5127);
  color: #fff;
  box-shadow: 0 4px 15px -3px rgba(234, 81, 39, 0.4);
}

.top-problem-card:not(.top-problem-card--accent) {
  background: var(--color-surface-soft);
}

.top-problem-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.top-problem-card__name {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-muted);
}

.top-problem-card__name--accent {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 251, 245, 0.9);
  max-width: 15vh;
}

.top-problem-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  color: var(--color-muted-2);
  flex-shrink: 0;
}

.top-problem-card__icon--accent {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.top-problem-card__fine {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.top-problem-card__fine--accent {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}

.top-problem-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-surface);
  color: var(--color-important);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  width: max-content;
}

.top-problem-card__badge--accent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  width: max-content;
}

.top-problem-card__badge svg,
.top-problem-card__badge--accent svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── CTA Card ── */
.cta-panel {
  margin-top: 0;
}

.cta-card {
  background: var(--color-text);
  border-radius: 24px;
  padding: 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.cta-card__decor {
  position: absolute;
  top: 0;
  right: 0;
  width: 256px;
  height: 256px;
  background: var(--color-primary);
  opacity: 0.2;
  border-radius: 50%;
  filter: blur(48px);
  margin-right: -80px;
  margin-top: -80px;
}

.cta-card__content {
  position: relative;
  z-index: 1;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cta-card__icon {
  width: 40px;
  height: 40px;
  background: rgba(234, 81, 39, 0.2);
  color: #fb923c;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.cta-card__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-card__text {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.cta-card__benefits {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.cta-card__benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #d1d5db;
}

.cta-card__benefit svg {
  width: 16px;
  height: 16px;
  color: #34d399;
  flex-shrink: 0;
}

.cta-card__btn {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: background 140ms;
  box-shadow: 0 4px 14px rgba(234, 81, 39, 0.39);
  text-align: center;
}

.cta-card__btn:hover { background: var(--color-primary-hover); }

/* ── Problems Section ── */
.problems-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.problems-section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.section-subtitle {
  color: var(--color-muted);
  font-size: 14px;
}

.text-muted-light {
  color: var(--color-muted-2);
}

.problem-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  background: var(--color-surface-soft);
  transition: all 140ms;
}

.filter-pill:hover {
  background: #f3f4f6;
  color: var(--color-text);
}

.filter-pill.is-active {
  background: var(--color-text);
  color: #fff;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.15);
}

.problems-table-wrap {
  overflow: visible;
}

.problems-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.problems-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: var(--color-surface-soft);
}

.problems-table th:nth-child(1) { width: 35%; }
.problems-table th:nth-child(2) { width: 18%; }
.problems-table th:nth-child(3) { width: 17%; }
.problems-table th:nth-child(4) { width: 15%; }
.problems-table th:nth-child(5) { width: 15%; }

.th-first { border-radius: 12px 0 0 12px; padding-left: 16px; }
.th-last { border-radius: 0 12px 12px 0; text-align: right; padding-right: 16px; }

.problems-table td {
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  vertical-align: middle;
}

.problems-table tr {
  transition: background 140ms;
}

.problems-table tbody tr:hover {
  background: var(--color-surface-soft);
}

.problem-cell {
  max-width: 280px;
}

.problem-cell__title {
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
}

.problem-cell__basis {
  font-size: 13px;
  color: var(--color-muted-2);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-cell {
  color: var(--color-muted);
}

.fine-cell {
  color: var(--color-text);
  font-weight: 500;
  white-space: nowrap;
}

.fine-cell--empty {
  color: var(--color-muted-2);
}

.status-cell {}

.table-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.table-status-badge--critical { background: var(--color-critical-bg); color: var(--color-critical); }
.table-status-badge--important { background: var(--color-important-bg); color: #ea580c; }
.table-status-badge--recommendation { background: var(--color-recommendation-bg); color: #2563eb; }
.table-status-badge--success { background: var(--color-success-bg); color: #059669; }
.table-status-badge--info { background: var(--color-info-bg); color: var(--color-info); }

.action-cell {
  text-align: right;
}

.view-btn {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 140ms;
  white-space: nowrap;
}

.view-btn:hover { color: var(--color-primary-hover); }
.view-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.show-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 247, 237, 0.5);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  transition: background 140ms;
}

.show-all-btn:hover { background: var(--color-primary-soft); }
.show-all-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.problems-mobile { display: none; }

.problem-mobile-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  margin-bottom: 12px;
}

.problem-mobile-basis {
  color: var(--color-muted-2);
  font-size: 13px;
}

/* ── Pages Section ── */
.pages-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.pages-section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: var(--color-surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  transition: background 140ms;
}

.ghost-btn:hover { background: var(--color-surface-soft); }
.ghost-btn svg { width: 16px; height: 16px; }

.pages-table-wrap {
  overflow: visible;
}

.pages-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.pages-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-surface-soft);
}

.pages-table td {
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.pages-table tr { transition: background 140ms; }
.pages-table tbody tr:hover { background: var(--color-surface-soft); }

.url-cell {
  font-weight: 500;
  color: var(--color-text);
  max-width: 360px;
  overflow-wrap: anywhere;
}

.page-status-cell {
  text-align: right;
}

.page-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.page-status--ok { color: #059669; }
.page-status--warning { color: #d97706; }
.page-status--critical { color: var(--color-critical); }
.page-status--info { color: var(--color-info); }

.page-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.page-status-dot--ok { background: #10b981; }
.page-status-dot--warning { background: #f59e0b; }
.page-status-dot--critical { background: var(--color-critical); }
.page-status-dot--info { background: var(--color-info); }

.page-warning-detail {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 400;
  color: #78716c;
  line-height: 1.4;
}

.pages-mobile { display: none; }

.pages-mobile-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  margin-bottom: 12px;
}

.pages-mobile-card h3 { font-size: 14px; font-weight: 500; }
.pages-mobile-card p { color: var(--color-muted); font-size: 14px; }

/* ── Disclaimer ── */
.report-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--color-muted-2);
  margin-top: 32px;
  padding-bottom: 32px;
}

/* ── Buttons ── */
.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 140ms;
}

.primary-btn:hover { background: var(--color-primary-hover); }

/* ── State block ── */
.state-block {
  padding: 40px;
  text-align: center;
  color: var(--color-muted);
  font-size: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-top: 32px;
}

.state-block.is-error { border-color: #fcd4d2; color: var(--color-critical); }

.empty-note {
  color: var(--color-muted);
  font-size: 14px;
  padding: 20px 0;
}

/* ── Modal overlay ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(20, 20, 12, 0.2);
  backdrop-filter: blur(4px);
}

body.has-modal { overflow: hidden; }

/* ── Finding modal ── */
.finding-modal {
  width: min(1024px, calc(100vw - 32px));
  max-height: 95vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: #f4f5f7;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
}

.finding-modal__header {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px 20px;
  background: rgba(244, 245, 247, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 24px 24px 0 0;
}

.finding-modal__severity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.finding-modal__severity.severity--important { background: var(--color-important-bg); color: var(--color-important); }
.finding-modal__severity.severity--critical { background: var(--color-critical-bg); color: var(--color-critical); }
.finding-modal__severity.severity--recommendation { background: var(--color-recommendation-bg); color: var(--color-recommendation); }
.finding-modal__severity.severity--success { background: var(--color-success-bg); color: var(--color-success); }
.finding-modal__severity.severity--info { background: var(--color-info-bg); color: var(--color-info); }

.finding-modal__severity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.severity--important .finding-modal__severity-dot { background: var(--color-important); }
.severity--critical .finding-modal__severity-dot { background: var(--color-critical); }
.severity--recommendation .finding-modal__severity-dot { background: var(--color-recommendation); }
.severity--success .finding-modal__severity-dot { background: var(--color-success); }
.severity--info .finding-modal__severity-dot { background: var(--color-info); }

.finding-modal__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text);
  font-weight: 800;
}

.finding-modal__location {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.finding-modal__location-link {
  color: var(--color-text);
  font-weight: 600;
  cursor: pointer;
  transition: color 140ms;
}

.finding-modal__location-link:hover { color: var(--color-primary); }

.finding-modal__close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  color: var(--color-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 140ms, color 140ms;
  border: none;
  font-size: 18px;
}

.finding-modal__close:hover {
  background: #f9fafb;
  color: var(--color-text);
}

.finding-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 32px 32px;
  display: grid;
  gap: 24px;
}

.finding-modal__diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.finding-modal__bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.finding-modal__footer {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px 20px;
  background: rgba(244, 245, 247, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 0 0 24px 24px;
}

.finding-modal__footer-nav {
  color: var(--color-muted-2);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 140ms;
  background: none;
  border: none;
}

.finding-modal__footer-nav:hover { color: var(--color-text); }

.finding-modal__footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.footer-btn {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms, color 140ms;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-btn--secondary {
  background: #fff;
  color: var(--color-muted-2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.footer-btn--secondary:hover {
  background: #f9fafb;
  color: var(--color-text);
}

.footer-btn--primary {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px 0 rgba(234, 81, 39, 0.39);
}

.footer-btn--primary:hover { background: var(--color-primary-hover); }

/* ── Diagnostics card (3-col grid) ── */
.diag-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.diag-card__icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.diag-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.diag-card__icon--check { background: var(--color-success-bg); color: var(--color-success); }
.diag-card__icon--found { background: var(--color-important-bg); color: var(--color-important); }
.diag-card__icon--risk { background: var(--color-critical-bg); color: var(--color-critical); }

.diag-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.diag-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* ── Legal risk card (accent section) ── */
.legal-risk-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px 32px;
  box-shadow: 0 0 30px -10px rgba(234, 81, 39, 0.35);
  border: 1px solid rgba(234, 81, 39, 0.15);
}

.legal-risk-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.legal-risk-card__desc {
  margin: 0 0 24px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 720px;
}

.legal-risk-card__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: start;
}

.legal-risk-card__section {
  display: grid;
  gap: 10px;
}

.legal-risk-card__section h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-risk-card__section h4 svg { color: var(--color-primary); }

.legal-basis-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.legal-basis-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.legal-basis-list li:last-child { border-bottom: none; }

.legal-basis-list strong {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  width: 90px;
  flex-shrink: 0;
  line-height: 1.4;
}

.legal-basis-list span {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
  padding-top: 1px;
}

.legal-basis-toggle {
  margin-top: 8px;
  padding: 8px 0;
  border: none;
  background: none;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.legal-basis-toggle:hover { text-decoration: underline; }

.fine-grid {
  display: grid;
  gap: 10px;
}

.fine-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 247, 237, 0.5);
  border: 1px solid rgba(234, 81, 39, 0.1);
}

.fine-item span { color: var(--color-muted-2); font-size: 13px; font-weight: 500; }
.fine-item strong { color: var(--color-primary); font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }

.legal-risk-note {
  margin-top: 8px;
  padding-left: 4px;
  color: var(--color-muted-2);
  font-size: 11px;
  line-height: 1.55;
}

.legal-risk-note strong { color: var(--color-muted); }

/* ── Fix card (inside modal) ── */
.fix-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
}

.fix-card__icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.fix-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-success-bg);
  color: var(--color-success);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.fix-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.fix-step {
  display: flex;
  gap: 12px;
}

.fix-step__num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-success-bg);
  color: var(--color-success);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.fix-step__text {
  color: var(--color-muted-2);
  font-size: 13px;
  line-height: 1.55;
}

/* ── Limit card (inside modal) ── */
.limit-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
}

.limit-card__icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.limit-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4f5f7;
  color: var(--color-muted-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.limit-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.limit-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* ── Lead modal ── */
.lead-modal {
  width: min(1024px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  display: flex;
  border-radius: 24px;
  box-shadow: 0 15px 50px -15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.lead-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: var(--color-muted);
  cursor: pointer;
  border: none;
  font-size: 18px;
  transition: background 140ms, color 140ms;
}

.lead-modal__close:hover {
  background: #e5e7eb;
  color: var(--color-text);
}

.lead-modal__sidebar {
  width: 40%;
  background: #14140c;
  color: #fff;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.lead-modal__sidebar-decor {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 160px;
  height: 160px;
  background: var(--color-primary);
  opacity: 0.2;
  border-radius: 50%;
  filter: blur(40px);
}

.lead-modal__sidebar-content {
  position: relative;
  z-index: 10;
  flex-grow: 1;
}

.lead-modal__sidebar h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.lead-modal__sidebar-desc {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 40px;
}

.lead-sidebar-info {
  display: grid;
  gap: 28px;
}

.lead-sidebar-label {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.lead-sidebar-value {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}

.lead-sidebar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lead-sidebar-grid .lead-sidebar-value {
  font-size: 28px;
  font-weight: 800;
}

.lead-sidebar-grid .lead-sidebar-value span {
  font-size: 16px;
  color: #6b7280;
  font-weight: 500;
}

.lead-sidebar-fine {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 16px;
}

.lead-sidebar-fine-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fed7aa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lead-sidebar-fine-value {
  font-size: 28px;
  font-weight: 800;
  color: #fb923c;
}

.lead-sidebar-bottom {
  position: relative;
  z-index: 10;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9ca3af;
  font-size: 13px;
}

.lead-sidebar-bottom svg { color: var(--color-success); flex-shrink: 0; }

.lead-modal__form-area {
  width: 60%;
  padding: 32px 40px;
  background: #fff;
  overflow-y: auto;
}

.lead-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.lead-form-fields {
  display: grid;
  gap: 20px;
  margin-top: 15px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
}

.field-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  font-size: 14px;
  color: var(--color-text);
  transition: border-color 140ms, background 140ms, outline 140ms;
}

.field-input:focus {
  border-color: var(--color-primary);
  background: #fff;
  outline: 3px solid rgba(234, 81, 39, 0.1);
}

.field-input[readonly] {
  background: #f3f4f6;
  color: var(--color-muted-2);
  cursor: not-allowed;
}

.field-input--invalid {
  border-color: var(--color-critical) !important;
  background: #fef2f2 !important;
  outline: 3px solid rgba(220, 38, 38, 0.1) !important;
}

textarea.field-input { min-height: 100px; resize: vertical; }

.form-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.lead-consent {
  display: flex !important;
  order: 1;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
  cursor: pointer;
}

.lead-consent input { margin-top: 3px; }
.lead-consent a { color: var(--color-primary); font-weight: 700; }

.lead-form-bottom {
  margin-top: 32px;
  padding-top: 16px;
  display: flex;
  flex-flow: column;
  gap: 18px;
}

.lead-form-submit {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px 0 rgba(234, 81, 39, 0.39);
  transition: background 140ms;
}

.lead-form-submit:hover { background: var(--color-primary-hover); }

.lead-form-submit.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.lead-submit-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  margin-right: 8px;
  animation: lead-spin 0.6s linear infinite;
}

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

.lead-form-fields.is-hidden,
.lead-form-bottom.is-hidden {
  display: none;
}

.lead-success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 16px;
}

.lead-success-card.is-hidden {
  display: none;
}

.lead-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-success-bg);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-success-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
}

.lead-success-text {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 320px;
}

.form-message {
  font-size: 14px;
  font-weight: 600;
  min-height: 0;
}

.form-message.is-error {
  color: var(--color-critical);
  background: var(--color-critical-bg);
  padding: 10px 14px;
  border-radius: 10px;
}

.form-message.is-success {
  color: #065f46;
  background: var(--color-success-bg);
  padding: 10px 14px;
  border-radius: 10px;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-critical { background: var(--color-critical-bg); color: var(--color-critical); }
.badge-important { background: var(--color-important-bg); color: var(--color-important); }
.badge-recommendation { background: var(--color-recommendation-bg); color: var(--color-recommendation); }
.badge-info { background: var(--color-info-bg); color: var(--color-info); }
.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-passed { background: var(--color-success-bg); color: var(--color-success); }

.text-link {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Landing Page Styles ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  padding: 0 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-nav {
  display: flex;
  gap: 6px;
}

.header-nav a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 650;
  transition: background 140ms, color 140ms;
}

.header-nav a:hover {
  background: var(--color-surface-soft);
  color: var(--color-text);
}

.header-action { margin-left: auto; }

.section-band { padding: 60px 0; }
.section-muted { background: var(--color-surface-soft); }

.section-heading { margin-bottom: 28px; }
.section-heading h2 { font-size: 28px; font-weight: 850; }
.section-intro { color: var(--color-muted); font-size: 16px; margin-top: 10px; max-width: 560px; }

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.lead {
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 600px;
}

.muted { color: var(--color-muted); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 750;
  border: none;
  cursor: pointer;
  transition: background 140ms, border-color 140ms;
}

.button-primary { background: var(--color-primary); color: #fff; }
.button-primary:hover { background: var(--color-primary-hover); }
.button-secondary { background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); }
.button-secondary:hover { border-color: var(--color-muted-2); }
.button-ghost { background: none; border: 1px solid var(--color-border); color: var(--color-text); }
.button-ghost:hover { border-color: var(--color-muted-2); }

.hero-grid-landing {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.hero-copy h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 850;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-facts {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-muted);
}

.audit-snapshot {
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.snapshot-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-warning { background: var(--color-important); }

.score-preview {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.score-number { font-size: 38px; font-weight: 900; }
.score-label { font-size: 14px; color: var(--color-muted); font-weight: 700; }

.snapshot-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.snapshot-metrics dt { font-size: 12px; color: var(--color-muted); font-weight: 750; }
.snapshot-metrics dd { font-size: 20px; font-weight: 900; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.feature-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { color: var(--color-muted); font-size: 14px; line-height: 1.5; }

.split-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 48px;
  align-items: start;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.check-item {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
}

.risk-list {
  display: grid;
  gap: 16px;
}

.risk-list article {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.risk-list h3 { font-size: 16px; font-weight: 800; margin: 8px 0; }
.risk-list p { color: var(--color-muted); font-size: 14px; }

.process-list {
  display: grid;
  gap: 20px;
  counter-reset: step;
}

.process-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.process-list li span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}

.process-list h3 { font-size: 16px; font-weight: 800; }
.process-list p { color: var(--color-muted); font-size: 14px; margin-top: 4px; }

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.faq-list summary { font-weight: 800; cursor: pointer; font-size: 15px; }
.faq-list p { color: var(--color-muted); font-size: 14px; margin-top: 10px; line-height: 1.5; }

.example-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 48px;
  align-items: start;
}

.report-example {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.report-example-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.report-example-row:last-child { border-bottom: 0; }

.badge-passed { background: var(--color-success-bg); color: var(--color-success); }

.final-cta { padding: 48px 0; }

.final-cta-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.final-cta h2 { font-size: 24px; font-weight: 850; }

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-shell);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-grid p { color: var(--color-muted); font-size: 13px; max-width: 600px; }
.footer-grid nav { display: flex; gap: 16px; }
.footer-grid nav a { color: var(--color-muted); font-size: 13px; font-weight: 700; }
.footer-grid nav a:hover { color: var(--color-text); }

.legal-page { padding: 40px 0 60px; }

.legal-document {
  max-width: 720px;
  margin: 0 auto;
}

.legal-document h1 { font-size: 28px; font-weight: 850; margin-bottom: 10px; }
.legal-document h2 { font-size: 20px; font-weight: 800; margin: 28px 0 10px; }
.legal-document section p { color: var(--color-muted); font-size: 15px; line-height: 1.6; margin-bottom: 10px; }

.progress-screen { padding: 60px 0; }

.progress-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}

.progress-layout h2 { font-size: 28px; font-weight: 850; margin-bottom: 10px; }

.progress-message {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 750;
  font-size: 14px;
  margin: 18px 0;
}

.progress-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
}

.progress-steps {
  display: grid;
  gap: 14px;
}

.progress-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: border-color 200ms, background 200ms;
}

.progress-steps li.is-active { border-color: var(--color-primary); background: var(--color-primary-soft); }
.progress-steps li.is-done { border-color: var(--color-success); background: var(--color-success-bg); }
.progress-steps li.is-active .step-index { background: var(--color-primary); color: #fff; }
.progress-steps li.is-done .step-index { background: var(--color-success); color: #fff; }
.progress-steps li.is-active h3 { color: var(--color-primary); }
.progress-steps li.is-done h3 { color: var(--color-success); }

.step-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-surface-soft);
  font-weight: 900;
  font-size: 14px;
  color: var(--color-muted);
  flex-shrink: 0;
  transition: background 200ms, color 200ms;
}

.progress-steps h3 { font-size: 14px; font-weight: 800; }
.progress-steps p { color: var(--color-muted); font-size: 13px; margin-top: 2px; }

.progress-message.is-error { background: var(--color-critical-bg); color: var(--color-critical); }

.admin-page { padding: 40px 0 60px; }
.admin-layout { max-width: 960px; margin: 0 auto; }

.admin-login-panel {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.admin-login-panel h1 { font-size: 24px; font-weight: 850; margin: 10px 0; }

.admin-login-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  text-align: left;
}

.admin-login-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.admin-toolbar h1 { font-size: 24px; font-weight: 850; margin-top: 6px; }

.status-filter {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}

.admin-section { margin-top: 28px; }
.admin-section h2 { font-size: 20px; font-weight: 850; margin-bottom: 14px; }

.audit-form {
  max-width: 520px;
  margin: 28px 0 0;
  padding: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.audit-form label { display: block; margin-bottom: 8px; font-weight: 750; }
.audit-form input { width: 100%; }

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.form-hint {
  font-size: 13px;
  color: var(--color-muted-2);
  margin-top: 6px;
}

/* ── Page-specific overrides ── */
body[data-page="result"] .site-header { display: none; }
body[data-page="result"] .site-footer { display: none; }

body[data-page="landing"] .topbar { display: none; }
body[data-page="landing"] .report-page { display: none; }

body[data-page="legal"] .topbar { display: none; }
body[data-page="legal"] .report-page { display: none; }

body[data-page="admin"] .topbar { display: none; }
body[data-page="admin"] .report-page { display: none; }

body[data-page="progress"] .topbar { display: none; }
body[data-page="progress"] .report-page { display: none; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .main-risk-grid {
    grid-template-columns: 1fr;
  }
  .cta-panel {
    margin-top: 24px;
  }
  .top-problems-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 16px 16px 12px;
    position: relative;
    width: auto;
  }

  .topnav-pills {
    display: none;
  }

  .report-main {
    padding: 24px 16px 0;
  }

  .report-section {
    margin-top: 24px;
  }

  .report-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-score-card {
    flex-direction: column;
    text-align: center;
  }

  .score-text-side {
    text-align: center;
  }

  .score-text-hint {
    justify-content: center;
  }

  .hero-grid .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .top-problems-cards {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    margin-top: 24px;
  }

  .finding-modal__diagnostics-grid { grid-template-columns: 1fr; }
  .finding-modal__bottom-grid { grid-template-columns: 1fr; }
  .legal-risk-card__content { grid-template-columns: 1fr; }
  .legal-basis-list li { flex-direction: column; gap: 4px; }
  .legal-basis-list strong { width: auto; }
  .fine-grid { grid-template-columns: 1fr; }
  .lead-modal { flex-direction: column; }
  .lead-modal__sidebar { width: 100%; padding: 24px; }
  .lead-modal__form-area { width: 100%; padding: 24px; }
  .form-two-columns { grid-template-columns: 1fr; }

  .problems-mobile { display: grid; gap: 12px; }
  .problems-table-wrap .problems-table { display: none; }

  .pages-mobile { display: grid; gap: 12px; }
  .pages-table-wrap .pages-table { display: none; }

  .modal-overlay { align-items: stretch; padding: 8px; }
  .finding-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 20px;
  }
  .finding-modal__header,
  .finding-modal__body,
  .finding-modal__footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .finding-modal__title { font-size: 22px; }
  .finding-modal__footer { flex-direction: column; }
  .finding-modal__footer-actions { flex-direction: column; width: 100%; }
  .finding-modal__footer-nav { width: 100%; justify-content: center; }
  .footer-btn { width: 100%; justify-content: center; }

  .problems-section-header {
    flex-direction: column;
  }

  .report-card {
    padding: 24px;
  }

  .topbar__actions .primary-pill-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand span { display: none; }
  .topbar__actions .icon-btn-round { display: none; }
  .hero-grid .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .report-main {
    padding: 16px 12px 0;
  }
}

/* ── Landing responsive ── */
@media (max-width: 768px) {
  .hero-grid-landing { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .split-layout { grid-template-columns: 1fr; }
  .example-layout { grid-template-columns: 1fr; }
  .progress-layout { grid-template-columns: 1fr; }
  .snapshot-metrics { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .final-cta-layout { flex-direction: column; align-items: flex-start; }
  .admin-toolbar { flex-direction: column; align-items: flex-start; }
}
