:root {
  --bg: #eef5ff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-dark: #0d2240;
  --text: #11253f;
  --muted: #5e7392;
  --line: rgba(17, 37, 63, 0.08);
  --line-strong: rgba(17, 37, 63, 0.18);
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --signal: #0ea5e9;
  --signal-soft: rgba(14, 165, 233, 0.12);
  --success: #17795c;
  --success-soft: rgba(23, 121, 92, 0.12);
  --warning: #c06618;
  --warning-soft: rgba(192, 102, 24, 0.12);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --shadow: 0 24px 70px rgba(37, 99, 235, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 12%, rgba(37, 99, 235, 0.18), transparent 22%),
    radial-gradient(circle at 88% 8%, rgba(14, 165, 233, 0.14), transparent 18%),
    linear-gradient(180deg, #f7fbff 0%, #eff6ff 100%);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

code {
  font-family: "SFMono-Regular", "Menlo", monospace;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 40vw;
  height: 40vw;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
}

.ambient--one {
  top: -6vw;
  right: -8vw;
  background: #60a5fa;
}

.ambient--two {
  left: -10vw;
  bottom: -10vw;
  background: #2563eb;
}

.app-shell {
  position: relative;
  max-width: 1340px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.app-shell--dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.content-shell {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 22px;
  padding: 22px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

.sidebar__logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.08);
  padding: 8px;
}

.sidebar__brand strong {
  display: block;
  color: var(--surface-dark);
  font-size: 0.98rem;
  line-height: 1.2;
}

.sidebar__brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.sidebar__nav {
  display: grid;
  gap: 8px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 16px;
  color: var(--surface-dark);
  text-decoration: none;
  font-weight: 700;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.sidebar__link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-strong);
  transform: translateX(2px);
}

.sidebar__footer {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(37, 99, 235, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-strong);
  font-size: 1.35rem;
  cursor: pointer;
}

.hero__topbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.sidebar-backdrop {
  display: none;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.brand-lockup__logo {
  width: 176px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  padding: 4px 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 0.98;
  max-width: none;
  margin-bottom: 0;
  color: var(--surface-dark);
  letter-spacing: -0.04em;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  align-items: start;
}

.card,
.summary-card,
.result-card,
.dataset-item,
.stat-chip {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 26px;
}

.card--wide {
  grid-column: 1 / -1;
}

.hero {
  grid-column: 1 / -1;
  display: block;
  overflow: hidden;
  margin-bottom: 8px;
}

.hero__content {
  display: grid;
  gap: 0;
  border-radius: 32px;
  padding: 34px 36px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.94)),
    linear-gradient(90deg, rgba(37, 99, 235, 0.07), rgba(14, 165, 233, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero__text {
  margin-top: 18px;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.02rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero__meta,
.mapping-pill,
.quality-pill,
.dataset-item__type {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero__meta {
  margin-top: 22px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-strong);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.hero__account-status {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.96rem;
}

.hero__meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.76;
}

.hero__meta-text {
  color: var(--surface-dark);
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 24px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(246, 250, 255, 0.94));
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: var(--shadow);
}

.trust-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  padding: 0 12px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-pill__text {
  color: var(--surface-dark);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.summary-card span,
.section-copy,
.result-card__head p,
.dataset-item__meta,
.empty-state,
.table-subnote {
  color: var(--muted);
}

.info-grid,
.audience-grid,
.faq-list,
.pricing-grid {
  display: grid;
  gap: 14px;
}

.info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.audience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.audience-card,
.account-card,
.faq-item,
.privacy-note {
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.info-card strong,
.audience-card strong,
.account-card strong,
.faq-item strong,
.privacy-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--surface-dark);
}

.info-card p,
.audience-card p,
.faq-item p,
.privacy-note p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.account-summary {
  display: grid;
  gap: 14px;
}

.account-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(244, 249, 255, 0.92));
}

.account-card__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

.account-card__row:last-child {
  border-bottom: 0;
}

.account-card__row strong {
  margin-bottom: 0;
}

.account-card__row span {
  color: var(--muted);
  text-align: right;
}

.privacy-note {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.92));
}

.pricing-card {
  border-radius: 26px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: var(--shadow);
}

.pricing-card--pro {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.pricing-card__label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-card__intro {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.pricing-card__price-wrap {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.pricing-card__price-old {
  color: #7f8ea8;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: rgba(220, 38, 38, 0.72);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}

.pricing-card__deal {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-card__price {
  display: block;
  font-size: 2rem;
  color: #0f3fb8;
  text-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
}

.pricing-card__copy {
  margin: 12px 0 16px;
  color: var(--muted);
  line-height: 1.68;
}

.pricing-card__link {
  display: inline-flex;
  text-decoration: none;
}

.pricing-card__note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.table-wrap--preview {
  margin-top: 2px;
}

.card--info {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 255, 0.94));
}

.legal-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-card,
.legal-alert {
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.legal-card p,
.legal-alert p {
  margin: 0 0 12px;
  line-height: 1.72;
  color: var(--muted);
}

.legal-card p:last-child,
.legal-alert p:last-child {
  margin-bottom: 0;
}

.legal-alert {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.95));
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 24px 8px 8px;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: min(520px, calc(100vw - 24px));
}

.cookie-banner__card {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(37, 99, 235, 0.08);
  box-shadow: 0 30px 80px rgba(12, 24, 43, 0.18);
}

.cookie-banner__card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--surface-dark);
}

.cookie-banner__card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.cookie-banner__links,
.legal-popup__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.cookie-banner__links a,
.legal-popup__links a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.cookie-banner__links a:hover,
.legal-popup__links a:hover {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cookie-preferences {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.legal-popup p {
  margin: 0 0 12px;
  line-height: 1.72;
  color: var(--muted);
}

.legal-popup p:last-child {
  margin-bottom: 0;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.cookie-option strong {
  display: block;
  margin-bottom: 6px;
}

.cookie-option small {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.cookie-option input {
  margin-top: 4px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 43, 0.38);
  backdrop-filter: blur(10px);
}

.modal__dialog {
  position: relative;
  width: min(720px, 100%);
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 40px 90px rgba(12, 24, 43, 0.22);
}

.modal__dialog--promo {
  width: min(760px, 100%);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(244, 249, 255, 0.97)),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08));
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-strong);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal__content {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.modal__lead {
  margin: 12px 0 0;
  max-width: 58ch;
  line-height: 1.72;
  color: var(--muted);
}

.modal__sublead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.promo-price {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.promo-price__old {
  color: #7f8ea8;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: rgba(220, 38, 38, 0.72);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.promo-price__deal {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.promo-price__current {
  color: #0f3fb8;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
}

.modal__note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.modal__block {
  border-radius: 20px;
  padding: 16px 18px;
  background: rgba(248, 251, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.modal__block strong {
  display: block;
  margin-bottom: 8px;
  color: var(--surface-dark);
}

.modal__block p {
  margin: 0;
  line-height: 1.68;
  color: var(--muted);
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.modal__promo-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.modal__promo-points span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.08);
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.section-head,
.toolbar,
.result-card__head,
.dataset-item__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.section-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

.upload {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 180px;
  padding: 24px;
  margin: 18px 0;
  border-radius: 24px;
  border: 2px dashed rgba(37, 99, 235, 0.18);
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.94));
  cursor: pointer;
}

.upload--locked {
  cursor: default;
}

body.is-pro-unlocked .upload--locked {
  border-style: solid;
}

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

.upload input {
  display: none;
}

.upload__title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.upload__subtitle {
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.toolbar {
  margin-bottom: 16px;
}

.toolbar--compact {
  margin-bottom: 0;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 150ms ease, opacity 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.button--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #f7fbff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.button--ghost {
  background: rgba(8, 20, 33, 0.06);
  color: var(--surface-dark);
  font-weight: 700;
}

.auth-switch {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.auth-switch__button {
  min-width: 140px;
}

.auth-switch__button--active {
  background: rgba(37, 99, 235, 0.14);
  color: var(--accent-strong);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span {
  color: var(--surface-dark);
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(248, 251, 255, 0.9);
  color: var(--surface-dark);
}

.auth-message {
  margin: 14px 0 0;
  color: var(--success);
  line-height: 1.6;
}

.auth-message--error {
  color: #b42318;
}

.auth-link {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.auth-link:hover {
  text-decoration: underline;
}

.dataset-list,
.mapping-list {
  display: grid;
  gap: 14px;
}

.empty-state {
  border-radius: 20px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.42);
  padding: 18px;
  line-height: 1.7;
}

.dataset-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
}

.dataset-item__main {
  min-width: 0;
}

.dataset-item__name {
  margin-bottom: 0;
}

.dataset-item__type {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.dataset-item__meta {
  margin: 10px 0 12px;
}

.dataset-item__mapping,
.mapping-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dataset-item__badge,
.quality-pill {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.dataset-item__badge,
.quality-pill--good {
  background: var(--success-soft);
  color: var(--success);
}

.quality-pill--warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.mapping-pill {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.rule-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.75;
}

.rule-list li + li {
  margin-top: 6px;
}

.card--results {
  grid-column: 1 / -1;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 20px;
}

.summary-card {
  border-radius: 24px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #2563eb, #0ea5e9);
}

.summary-card strong {
  display: block;
  font-size: 2.1rem;
  margin-top: 10px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.result-card {
  border-radius: 24px;
  padding: 18px;
}

.result-card--wide {
  grid-column: 1 / -1;
}

.table-wrap {
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.section-head--audit {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(37, 99, 235, 0.08);
}

.audit-list {
  display: grid;
  gap: 14px;
}

.audit-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(24, 48, 71, 0.12);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 18px;
}

.audit-card__head,
.audit-grid {
  display: grid;
  gap: 12px;
}

.audit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.audit-block {
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--line);
}

.audit-block--removed {
  background: rgba(14, 165, 233, 0.06);
}

.audit-block--kept {
  background: rgba(45, 125, 92, 0.08);
}

.pill--warn {
  background: var(--signal-soft);
  color: var(--signal);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  font-size: 0.86rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(37, 99, 235, 0.04);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 20, 33, 0.06);
  color: var(--surface-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.mono {
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 0.9rem;
}

.line-stack {
  display: grid;
  gap: 6px;
}

@media (max-width: 1040px) {
  .app-shell--dashboard {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 14px;
    left: 14px;
    bottom: 14px;
    z-index: 70;
    width: min(320px, calc(100vw - 28px));
    transform: translateX(-110%);
    transition: transform 180ms ease;
    overflow: auto;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(12, 24, 43, 0.36);
    backdrop-filter: blur(4px);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .layout,
  .legal-layout,
  .info-grid,
  .audience-grid,
  .pricing-grid,
  .summary-grid,
  .results-grid,
  .audit-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding-inline: 14px;
  }

  .app-shell--dashboard {
    gap: 18px;
  }

  .hero__content {
    padding: 24px 20px;
  }

  .hero__meta {
    width: 100%;
    justify-content: space-between;
  }

  .hero__actions {
    width: 100%;
  }

  .modal__dialog {
    padding: 24px 20px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .card,
  .summary-card,
  .result-card {
    padding: 16px;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding-inline: 8px;
  }
}
