/* ConsentChecker.eu — clean professional design, WCAG AA */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/inter-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:       #ffffff;
  --c-surface:  #f8fafc;
  --c-border:   #e2e8f0;
  --c-text:     #0f172a;
  --c-text-2:   #475569;
  --c-muted:    #64748b;   /* 5.7:1 on white — WCAG AA */
  --c-accent:   #2563eb;
  --c-accent-d: #1d4ed8;
  --c-green:    #16a34a;
  --c-amber:    #b45309;   /* darkened to pass AA on white */
  --c-red:      #dc2626;
  --c-hero:     #0f172a;
  --max-w:      860px;
  --pad:        1.5rem;
  --r:          10px;
  --r-sm:       6px;
}

/* ─── Base ─── */

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system,
               BlinkMacSystemFont, 'Segoe UI', 'Liberation Sans', Arial, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* Skip-to-main link */
.skip-link {
  position: absolute;
  top: -50px;
  left: 1rem;
  background: var(--c-accent);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  z-index: 200;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* Global focus styles */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ─── Header ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}

.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

.logo-accent { color: var(--c-accent); }
.logo-tld    { color: var(--c-muted); font-weight: 500; }

/* ─── Main ─── */

main { display: block; }

/* ─── Hero ─── */

.hero {
  background: var(--c-hero);
  color: white;
  padding: 4.5rem 0 5rem;
}

.hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: white;
}

.hero-sub {
  color: #94a3b8; /* OK: on dark hero bg contrast is ~4.7:1 */
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

/* Scan form */
.scan-form { max-width: 540px; }

.scan-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.scan-input-row {
  display: flex;
  gap: 0.5rem;
}

.scan-input-row input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1.5px solid #334155;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: #1e293b;
  color: white;
  transition: border-color 0.15s;
}

.scan-input-row input::placeholder { color: #64748b; }
.scan-input-row input:focus-visible {
  border-color: var(--c-accent);
  outline: 2px solid var(--c-accent);
  outline-offset: 0;
}

.scan-hint {
  font-size: 0.875rem;
  color: #fca5a5; /* light red on dark bg */
  min-height: 1.4em;
  display: block;
}

/* ─── Buttons ─── */

.btn-primary,
button[type="submit"] {
  background: var(--c-accent);
  color: #fff;
  border: none;
  padding: 0.875rem 1.4rem;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-primary:hover,
button[type="submit"]:hover { background: var(--c-accent-d); }

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-secondary {
  color: var(--c-accent);
  border: 1.5px solid var(--c-accent);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}

.btn-secondary:hover { background: #eff6ff; }

/* ─── Content sections ─── */

.content-body {
  padding: 4rem 0;
}

.content-body > section + section {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--c-border);
}

.content-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

/* ─── How it works ─── */

.how-it-works ol {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.how-it-works ol li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0 1rem;
  align-items: start;
}

.how-it-works ol li::before {
  content: counter(steps);
  background: var(--c-accent);
  color: #fff;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  grid-row: 1 / 3; /* span both rows so the number stays aligned */
  align-self: start;
  margin-top: 0.1rem;
}

.how-it-works ol li strong {
  display: block;
  font-weight: 600;
  grid-column: 2;
}

.how-it-works ol li span {
  color: var(--c-text-2);
  font-size: 0.95rem;
  display: block;
  grid-column: 2;
  margin-top: 0.2rem;
}

/* ─── Why it matters ─── */

.why-it-matters p         { color: var(--c-text-2); }
.why-it-matters p + p     { margin-top: 0.75rem; }

/* ─── Report teaser ─── */

.report-teaser ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.report-teaser ul li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--c-text-2);
}

.report-teaser ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c-green);
  font-weight: 700;
}

.report-upsell {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--c-text);
  padding: 0.875rem 1rem;
  background: var(--c-surface);
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
}

/* ─── FAQ (collapsible) ─── */

.faq dl { display: none; } /* hide dl in case old markup falls through */

.faq details {
  border-bottom: 1px solid var(--c-border);
}

.faq details:first-of-type {
  border-top: 1px solid var(--c-border);
}

.faq summary {
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--c-muted);
  flex-shrink: 0;
}

.faq details[open] summary::after { content: '−'; }

.faq-answer {
  padding: 0 0 1.1rem;
  color: var(--c-text-2);
}

/* ─── Footer CTA ─── */

.footer-cta-section {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 3.5rem 0;
  text-align: center;
}

.footer-cta-section p {
  font-size: 1.05rem;
  color: var(--c-text-2);
  max-width: 460px;
  margin: 0 auto 1.5rem;
}

/* ─── Site footer ─── */

.site-footer {
  text-align: center;
  padding: 1.5rem var(--pad);
  border-top: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: 0.85rem;
}
.footer-inner { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--c-muted); text-decoration: none; }
.footer-links a:hover { color: var(--c-primary); text-decoration: underline; }

/* ─── Legal pages ─── */
.legal-page { padding: 3rem 0; }
.legal-page h1 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.legal-date { color: var(--c-muted); font-size: 0.875rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.1rem; margin: 2rem 0 0.5rem; }
.legal-page p, .legal-page li { line-height: 1.75; color: var(--c-text); }
.legal-page ul { padding-left: 1.25rem; }
.legal-page li { margin-bottom: 0.375rem; }
.legal-page a { color: var(--c-primary); }

/* ─── Scan page ─── */

.scan-page { padding: 3rem 0; min-height: 50vh; }

.scanning-state          { text-align: center; padding: 4rem 0; }
.scanning-state h1       { font-size: 1.6rem; margin: 1.5rem 0 0.75rem; }
.scanning-state .scan-url { font-size: 0.875rem; color: var(--c-muted); margin-bottom: 0.5rem; font-family: ui-monospace, 'Liberation Mono', monospace; }
.scanning-state .scan-sub { color: var(--c-text-2); font-size: 0.95rem; }

/* Spinner */
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto;
}

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

/* Verdict */
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.verdict-clean  { background: #dcfce7; color: #15803d; }
.verdict-low    { background: #dcfce7; color: #15803d; }
.verdict-medium { background: #fef3c7; color: var(--c-amber); }
.verdict-high   { background: #fee2e2; color: var(--c-red); }

.result-clean h1,
.result-violations h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.scan-url {
  font-size: 0.875rem;
  color: var(--c-muted);
  font-family: ui-monospace, 'Liberation Mono', monospace;
  margin-bottom: 1.75rem;
}

.result-clean > p { color: var(--c-text-2); }
.result-clean > p + p { margin-top: 0.4rem; }

/* Summary grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin: 1.75rem 0;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  overflow: hidden;
}

.summary-item {
  background: var(--c-surface);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
}

.summary-label { font-size: 0.75rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.summary-value { font-weight: 700; font-size: 1rem; }

.risk-high   { color: var(--c-red); }
.risk-medium { color: var(--c-amber); }
.risk-low    { color: var(--c-green); }

/* Violations table */
.violations-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 0.925rem;
}

.violations-table th {
  text-align: left;
  padding: 0.625rem 0.875rem;
  border-bottom: 2px solid var(--c-border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  font-weight: 500;
}

.violations-table td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}

.violations-table tbody tr:hover { background: var(--c-surface); }
.violation-yes { color: var(--c-red); font-weight: 600; }

/* Report CTA */
.report-cta {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--r);
  padding: 1.75rem;
  margin-top: 2.25rem;
}

.report-cta h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
}

.report-cta ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.report-cta ul li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--c-text-2);
  font-size: 0.95rem;
}

.report-cta ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--c-accent);
}

.btn-report { margin-bottom: 0.5rem; }
.report-note { font-size: 0.85rem; color: var(--c-muted); }

/* Error state (inline, e.g. scan not found within a page) */
.error-state       { text-align: center; padding: 4rem 0; }
.error-state h1    { font-size: 1.6rem; margin-bottom: 0.875rem; }
.error-state p     { color: var(--c-text-2); margin-bottom: 1.75rem; }

/* ─── 404 page ─── */

.error-hero {
  background: var(--c-hero);
  color: white;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.error-hero-inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.error-code {
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.15);
  margin-bottom: 1rem;
  user-select: none;
}

.error-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 1rem;
}

.error-body {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: white;
}

/* ─── Report page ─── */

.report-page { padding: 3rem 0; }

.report-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-border);
}

.report-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.report-section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--c-border);
}

.report-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.text-green { color: var(--c-green); font-weight: 600; }
.text-red   { color: var(--c-red); font-weight: 600; }
.text-muted { color: var(--c-muted); }
.text-sm    { font-size: 0.875rem; }

/* Screenshots */
.screenshots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.screenshot-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.screenshot-img {
  width: 100%;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  display: block;
}

.screenshot-clickable {
  cursor: zoom-in;
  transition: opacity 0.15s;
}
.screenshot-clickable:hover { opacity: 0.88; }

.screenshot-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.screenshot-lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--r-sm);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* GTM panel */
.gtm-panel { padding: 0.75rem 0; }
.gtm-containers { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.gtm-id {
  display: inline-block;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 0.25rem 0.75rem;
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text);
}
.gtm-sgtm-note { font-size: 0.85rem; color: var(--c-text-2); margin-top: 0.25rem; }
.gtm-sgtm-note code { font-size: 0.8rem; }

/* Banner UI analysis */
.banner-analysis {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid var(--c-border);
}
.banner-analysis.ba-ok          { background: #f0fdf4; border-color: #bbf7d0; }
.banner-analysis.ba-warn        { background: #fffbeb; border-color: #fcd34d; }
.banner-analysis.ba-none        { background: var(--c-surface); }
.banner-analysis.ba-loading     { background: var(--c-surface); }
.banner-analysis.ba-placeholder { background: var(--c-surface); }

.ba-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.85rem; }
.ba-icon   { font-size: 1rem; }
.ba-ok   .ba-icon { color: var(--c-green); }
.ba-warn .ba-icon { color: var(--c-amber); }

.ba-verdict { font-size: 0.9rem; color: var(--c-text-2); line-height: 1.6; }

.ba-dark-patterns {
  margin-top: 0.6rem;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--c-amber);
  line-height: 1.7;
}

/* Consent Mode v2 */
.cmv2-panel   { padding: 1rem 1.25rem; border-radius: var(--r); }
.cmv2-ok      { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cmv2-missing { background: #fef2f2; border: 1px solid #fecaca; }
.cmv2-grid    { display: flex; gap: 2rem; margin-top: 0.75rem; flex-wrap: wrap; }
.cmv2-item    { display: flex; flex-direction: column; gap: 0.2rem; }

/* Domains */
.domains-grid      { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.domains-label     { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 0.5rem; }
.domains-label-bad { color: var(--c-red); }
.domains-label-ok  { color: var(--c-green); }
.domain-list       { list-style: none; font-size: 0.875rem; }
.domain-list li    { padding: 0.3rem 0; border-bottom: 1px solid var(--c-border); display: flex; align-items: center; gap: 0.5rem; }
.badge-violation   { background: #fee2e2; color: var(--c-red); font-size: 0.7rem; padding: 0.1rem 0.4rem; border-radius: 999px; font-weight: 600; }

/* Monitoring CTA */
.monitor-cta {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--r-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.monitor-cta h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.monitor-cta p  { margin: 0.375rem 0; color: var(--c-text); font-size: 0.9375rem; }
.monitor-form { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.monitor-form input[type=email] {
  flex: 1;
  min-width: 200px;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-family: inherit;
}
.monitor-note { font-size: 0.8rem; color: var(--c-muted); margin-top: 0.5rem !important; }
.monitor-confirm { font-size: 0.9375rem; font-weight: 600; color: #166534; margin-top: 0.75rem !important; }
.monitor-cta-inline { background: #fffbeb; border-color: #fcd34d; }
.monitor-cta-inline strong { display: block; margin-bottom: 0.25rem; }
.monitor-form-inline { margin-top: 0.75rem; }

/* Payment gate */
.payment-gate {
  margin: 2rem 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 100%);
  border: 2px solid #c7d2fe;
  border-radius: var(--r-md);
  padding: 2rem;
  text-align: center;
}
.payment-gate-inner { max-width: 480px; margin: 0 auto; }
.payment-gate h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.payment-gate-list { text-align: left; margin: 0 auto 1.5rem; max-width: 360px; padding-left: 1.25rem; line-height: 1.9; color: var(--c-text); }
.payment-gate-price { font-size: 1.5rem; font-weight: 700; color: var(--c-primary); margin-bottom: 1.25rem; }
.payment-gate-price span { font-size: 0.875rem; font-weight: 400; color: var(--c-muted); margin-left: 0.5rem; }
.btn-pay { font-size: 1.05rem; padding: 0.875rem 2rem; }

/* Blurred placeholder for locked sections */
.content-blurred {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

/* AI sections */
.ai-section        { border-left: 3px solid #7c3aed; padding-left: 1.25rem; }
.ai-badge          { display: inline-block; background: #f5f3ff; color: #7c3aed; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.75rem; border: 1px solid #ddd6fe; }
.ai-placeholder-block { background: var(--c-surface); border: 1.5px dashed var(--c-border); border-radius: var(--r-sm); padding: 1rem 1.25rem; color: var(--c-muted); font-style: italic; }
.ai-summary        { font-size: 1.05rem; line-height: 1.75; }
.ai-content        { line-height: 1.8; }
.ai-fix            { background: var(--c-surface); border-radius: var(--r-sm); padding: 1rem 1.25rem; }
.ai-violations-list { display: flex; flex-direction: column; gap: 1rem; }
.ai-violation-item { padding: 0.875rem 1rem; background: var(--c-surface); border-radius: var(--r-sm); border: 1px solid var(--c-border); }
.ai-violation-item p { margin: 0.4rem 0 0; line-height: 1.6; }
.ai-domain         { font-size: 0.9rem; font-weight: 700; }

.report-back {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}

.checkout-success-notice {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 0.75rem 1.125rem;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* ─── Cache / debug ─── */

.cache-notice {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 0.625rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}

.cache-notice a       { color: #166534; font-weight: 600; }
.scan-debug-link      { margin-top: 2.25rem; font-size: 0.8rem; color: var(--c-muted); }
.scan-debug-link code { font-size: 0.75rem; }

.error-details summary { cursor: pointer; color: var(--c-muted); font-size: 0.875rem; }
.error-details pre     { margin-top: 0.5rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: 0.875rem; font-size: 0.8rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* ─── AI loading state ─── */

.ai-loading-section { border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 1.5rem; background: var(--c-surface); }

.ai-loading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ai-loading strong { display: block; margin-bottom: 0.25rem; }
.ai-loading p { margin: 0; font-size: 0.875rem; color: var(--c-muted); }

.ai-loading-spinner {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: ai-spin 0.8s linear infinite;
}
.ai-loading-spinner.ai-loading-spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }

.ai-loading-shimmer { display: flex; flex-direction: column; gap: 0.6rem; }
.shimmer-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c-border) 25%, #e8edf2 50%, var(--c-border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.shimmer-line-lg { width: 85%; }
.shimmer-line-md { width: 65%; }
.shimmer-line-sm { width: 45%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ─── Knowledge Base ─── */

.kb-page, .kb-index-page { padding: 3rem 0; }

.breadcrumb { font-size: 0.85rem; color: var(--c-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--c-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.kb-header { margin-bottom: 2.5rem; }
.kb-badges { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-category { background: #e0f2fe; color: #0369a1; }
.badge-consent  { background: #f5f3ff; color: #7c3aed; }
.kb-header h1   { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.75rem; }
.kb-lead        { font-size: 1rem; line-height: 1.75; color: var(--c-text); max-width: 680px; }

.kb-section     { margin-bottom: 2rem; border-top: 1px solid var(--c-border); padding-top: 1.5rem; }
.kb-section h2  { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.kb-meta        { font-size: 0.875rem; color: var(--c-muted); margin-bottom: 1rem; }

.domain-list, .cookie-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.domain-list li code, .cookie-list li code { background: var(--c-surface); border: 1px solid var(--c-border); padding: 0.2rem 0.5rem; border-radius: var(--r-sm); font-size: 0.85rem; }

.fix-steps { padding-left: 1.25rem; }
.fix-steps li { line-height: 1.75; margin-bottom: 0.5rem; color: var(--c-text); }
.fix-steps li code { background: var(--c-surface); border: 1px solid var(--c-border); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.85em; }

.kb-cta { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 1.5rem; margin-top: 2.5rem; }
.kb-cta h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.kb-cta p  { font-size: 0.95rem; color: var(--c-muted); margin-bottom: 1rem; }
.kb-cta--affiliate { border-color: var(--c-accent); background: #eff6ff; }
.kb-cta--affiliate h2 { color: var(--c-accent); }
.kb-cta--affiliate .kb-cta-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.kb-index-header { margin-bottom: 2.5rem; }
.kb-index-header h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.kb-index-header p  { font-size: 1rem; color: var(--c-muted); }

.kb-category-group    { margin-bottom: 2.5rem; }
.kb-category-group h2 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); margin-bottom: 1rem; }
.kb-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.kb-card { display: block; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 1rem 1.25rem; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.kb-card:hover { border-color: var(--c-primary); box-shadow: 0 2px 8px rgba(37,99,235,0.08); }
.kb-card-vendor { font-weight: 700; color: var(--c-text); margin-bottom: 0.35rem; }
.kb-card-meta code { font-size: 0.75rem; color: var(--c-muted); }

.kb-index-cta { border-top: 1px solid var(--c-border); padding-top: 2rem; margin-top: 1rem; }
.kb-index-cta p { color: var(--c-muted); margin-bottom: 1rem; }

/* ─── Referral CTA (shared clean link landing) ─── */

.referral-cta {
  background: linear-gradient(160deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--r);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.referral-cta-screenshot {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  border-radius: var(--r-sm);
  border: 1px solid #bbf7d0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.referral-cta-q {
  font-size: 1.15rem;
  font-weight: 700;
  color: #14532d;
  margin-bottom: 1.25rem;
}

.referral-cta-btn {
  font-size: 1rem;
}

/* ─── Clean / You're compliant page ─── */

.clean-page { padding: 3rem 0 4rem; }

.clean-hero {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  background: linear-gradient(160deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--r);
  margin-bottom: 2rem;
}

.clean-check {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--c-green);
  margin-bottom: 1rem;
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.clean-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #14532d;
  margin-bottom: 0.5rem;
}

.clean-url {
  color: #166534;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.clean-sub {
  color: #15803d;
  font-size: 0.9375rem;
  max-width: 480px;
  margin: 0 auto;
}

.clean-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.clean-stat {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.clean-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-text);
}

.clean-stat-green { color: var(--c-green); }

.clean-stat-label {
  font-size: 0.8125rem;
  color: var(--c-muted);
  line-height: 1.3;
}

.clean-screenshot {
  margin-bottom: 2rem;
  text-align: center;
}

.clean-screenshot-img {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--r);
  border: 1px solid var(--c-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Share block */

.result-dist {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.result-dist h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.dist-intro {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin-bottom: 1.25rem;
}

.dist-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.dist-hint {
  font-weight: 400;
  color: var(--c-muted);
}

.dist-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--c-text);
  resize: vertical;
  transition: border-color 0.15s;
  margin-bottom: 1rem;
}

.dist-textarea:focus {
  outline: none;
  border-color: var(--c-accent);
}

.dist-actions {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  align-items: center;
}

.dist-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.15s, background 0.15s;
}

.dist-btn:hover { opacity: 0.88; }

.dist-btn-copy {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  color: var(--c-text);
}

.dist-btn-li {
  background: #0a66c2;
  color: #fff;
}

.dist-btn-x {
  background: #000;
  color: #fff;
}

.dist-btn-link {
  background: transparent;
  border: 1.5px solid var(--c-border);
  color: var(--c-accent);
}

.dist-btn-bsky {
  background: #0085ff;
  color: #fff;
}

.dist-confirm {
  font-size: 0.875rem;
  color: var(--c-green);
  font-weight: 600;
  margin-top: 0.75rem;
}

/* Monitor upsell at bottom of clean page */

.clean-monitor {
  margin-top: 0;
}

/* ─── Responsive ─── */

@media (max-width: 600px) {
  :root { --pad: 1.1rem; }

  .hero                  { padding: 3rem 0 3.5rem; }
  .hero h1               { font-size: 2rem; }
  .scan-input-row        { flex-direction: column; }
  .screenshots-grid      { grid-template-columns: 1fr; }
  .domains-grid          { grid-template-columns: 1fr; }
  .summary-grid          { grid-template-columns: 1fr 1fr; }
  .cmv2-grid             { gap: 1rem; }
}
