/* =====================================================================
   EU Compliance Wizard — Page Styles
   Uses existing CSS variables from style.css
   ===================================================================== */

/* Ensure [hidden] always wins — some display: flex rules would override it otherwise */
[hidden] { display: none !important; }

/* Page-level overrides */
.eu-wizard-page main {
  padding: 0;
  /* Dark so the sticky-footer free space never shows the white body bg. */
  background: #0F172A;
}

/* ─── Hero ─────────────────────────────────────────────────────────── */

.eu-hero {
  background: linear-gradient(160deg, #0F172A 0%, #1E293B 55%, #0F172A 100%);
  color: white;
  padding: 120px 0 80px;  /* 120px = 80px fixed-nav + 40px breathing room */
  position: relative;
  overflow: hidden;
  /* Fill the viewport below the fixed header so the section feels full and the
     footer is pushed to the bottom (no white sticky-footer gap). */
  min-height: calc(100vh - 80px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eu-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(68, 140, 247, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.eu-hero .container {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.eu-hero__eyebrow {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.eu-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eu-badge--blue {
  background: rgba(68, 140, 247, 0.2);
  border: 1px solid rgba(68, 140, 247, 0.4);
  color: #93c5fd;
}

.eu-badge--purple {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}

.eu-hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  color: white;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.eu-hero__sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.eu-hero__sub strong {
  color: rgba(255, 255, 255, 0.9);
}

/* ─── Input Card ────────────────────────────────────────────────────── */

.eu-input-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  text-align: left;
  margin-bottom: 32px;
}

/* Tabs */
.eu-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}

.eu-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.eu-tab:hover {
  color: #1e293b;
}

.eu-tab--active {
  background: white;
  color: #1e293b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.eu-tab-panel {
  margin-bottom: 20px;
}

/* Form fields */
.eu-textarea,
.eu-input-field {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 15px;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.2s;
  box-sizing: border-box;
}

.eu-textarea:focus,
.eu-input-field:focus {
  outline: none;
  border-color: #448cf7;
  background: white;
  box-shadow: 0 0 0 3px rgba(68, 140, 247, 0.12);
}

.eu-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.eu-input-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 6px;
  margin-bottom: 0;
}

/* Dropzone */
.eu-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #64748b;
}

.eu-dropzone:hover,
.eu-dropzone.drag-over {
  border-color: #448cf7;
  background: #f0f7ff;
}

.eu-dropzone svg {
  color: #94a3b8;
  margin-bottom: 12px;
}

.eu-dropzone p {
  font-size: 14px;
  margin: 0 0 4px;
}

.eu-dropzone__browse {
  color: #448cf7;
  cursor: pointer;
  text-decoration: underline;
}

.eu-file-selected {
  margin-top: 12px;
  padding: 8px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 13px;
  color: #15803d;
}

/* Buttons */
.eu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.eu-btn--primary {
  background: linear-gradient(135deg, #448cf7 0%, #2048D5 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(68, 140, 247, 0.35);
}

.eu-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(68, 140, 247, 0.45);
}

.eu-btn--primary:active {
  transform: translateY(0);
}

.eu-btn--primary:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.eu-btn--ghost {
  background: transparent;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.eu-btn--ghost:hover {
  color: #1e293b;
  border-color: #94a3b8;
  background: #f8fafc;
}

.eu-btn--outline {
  background: transparent;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
}

.eu-btn--outline:hover {
  border-color: #448cf7;
  color: #448cf7;
  background: #f0f7ff;
}

.eu-btn--lg { padding: 16px 32px; font-size: 16px; border-radius: 12px; }
.eu-btn--sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.eu-btn--full { width: 100%; }

/* Privacy note */
.eu-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 12px;
  margin-bottom: 0;
}

.eu-privacy-note--centered {
  justify-content: center;
}

/* Trust bar */
.eu-trust-bar {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.eu-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.eu-trust-item svg {
  color: #4ade80;
  flex-shrink: 0;
}

/* ─── Wizard Sections (shared) ───────────────────────────────────────── */

.eu-wizard-section {
  padding: 104px 0 80px;   /* 80px nav + 24px breathing room */
  background: #f8fafc;
  min-height: 100vh;
}

.eu-wizard-section--center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.eu-container--narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* The review/profile editor benefits from a little more width so the labels
   and the (now larger) inputs sit comfortably side by side. */
#state-review .eu-container--narrow {
  max-width: 760px;
}

/* Progress steps */
.eu-wizard-header {
  text-align: center;
  margin-bottom: 36px;
}

.eu-progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
}

.eu-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.eu-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(50% + 10px);
  top: 10px;
  width: calc(100% - 8px);
  height: 2px;
  background: #e2e8f0;
}

.eu-step--done:not(:last-child)::after {
  background: #448cf7;
}

.eu-step__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 2px solid #e2e8f0;
  display: block;
  transition: all 0.3s;
}

.eu-step--active .eu-step__dot {
  background: #448cf7;
  border-color: #448cf7;
  box-shadow: 0 0 0 4px rgba(68, 140, 247, 0.2);
}

.eu-step--done .eu-step__dot {
  background: #448cf7;
  border-color: #448cf7;
}

.eu-step__label {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  min-width: 64px;
  text-align: center;
}

.eu-step--active .eu-step__label,
.eu-step--done .eu-step__label {
  color: #448cf7;
}

.eu-wizard-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 16px 0 8px;
}

.eu-wizard-sub {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

/* Complexity badge */
.eu-complexity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.eu-complexity-badge.low {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.eu-complexity-badge.high {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

/* ─── Chat: polished conversational surface ──────────────────────────── */
/* Motion tokens (Emil Kowalski easing curves) */
:root {
  --eu-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --eu-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --eu-brand: #2048d5;
  --eu-brand-2: #6366f1;
}

#state-chat .ns-chat-container {
  margin-bottom: 0;
  padding: 0;
  border: 1px solid #e7ecf6;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
              0 24px 48px -28px rgba(32, 72, 213, 0.28);
  background:
    radial-gradient(120% 120% at 100% 0%, #f5f8ff 0%, #ffffff 42%);
  overflow: hidden;
}

#state-chat .ns-chat-messages {
  max-height: 460px;
  padding: 22px 22px 8px;
  margin-bottom: 0;
  scroll-behavior: smooth;
}

/* Message rows: advisor gets an avatar on the left */
#state-chat .ns-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 0;
  background: none;
  border: none;
  animation: eu-msg-in 0.42s var(--eu-ease-out) both;
}

@keyframes eu-msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eu-msg-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, #3869fa 0%, #2048d5 60%, #4f46e5 100%);
  box-shadow: 0 6px 14px -6px rgba(32, 72, 213, 0.7);
}
.eu-msg-avatar svg { width: 18px; height: 18px; }

.eu-msg-body {
  position: relative;
  padding: 13px 16px;
  border-radius: 4px 16px 16px 16px;
  background: #fff;
  border: 1px solid #e7ecf6;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  max-width: 82%;
}
.eu-msg-body strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--eu-brand);
  margin-bottom: 4px;
}
.eu-msg-body p { margin: 0; color: #1e293b; line-height: 1.62; font-size: 15px; }

/* User message: right-aligned gradient bubble, no avatar */
#state-chat .ns-message.user { flex-direction: row-reverse; }
#state-chat .ns-message.user .eu-msg-body {
  background: linear-gradient(135deg, #3869fa 0%, #4f46e5 100%);
  border: none;
  border-radius: 16px 4px 16px 16px;
  box-shadow: 0 8px 18px -10px rgba(79, 70, 229, 0.8);
}
#state-chat .ns-message.user .eu-msg-body strong { color: rgba(255,255,255,0.72); }
#state-chat .ns-message.user .eu-msg-body p { color: #fff; }

/* Typing indicator */
.eu-typing-dots { display: flex; gap: 5px; padding: 4px 2px; }
.eu-typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #b9c4de;
  animation: eu-typing 1.1s var(--eu-ease-in-out) infinite;
}
.eu-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.eu-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes eu-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* "Initial scan complete" card — distinct from question bubbles */
.eu-scan-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0f5ff 0%, #f7faff 100%);
  border: 1px solid #d8e3ff;
  animation: eu-msg-in 0.42s var(--eu-ease-out) both;
}
.eu-scan-card__icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  color: #2048d5; background: #e2ebff;
}
.eu-scan-card__icon svg { width: 16px; height: 16px; }
.eu-scan-card__label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: #2048d5; margin-bottom: 3px;
}
.eu-scan-card__text { margin: 0; font-size: 14px; line-height: 1.55; color: #334155; }

.eu-chat-actions { text-align: center; margin-top: 16px; }

/* ─── Choice buttons ─────────────────────────────────────────────────── */

.eu-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 14px 22px 18px;
  background: linear-gradient(180deg, rgba(248,250,255,0) 0%, #f7faff 30%);
}

.eu-choice-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  background: #fff;
  border: 1.5px solid #d4ddee;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: transform 150ms var(--eu-ease-out),
              border-color 150ms ease, color 150ms ease,
              background 150ms ease, box-shadow 150ms ease;
  /* staggered entrance */
  opacity: 0;
  transform: translateY(8px);
  animation: eu-chip-in 0.34s var(--eu-ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes eu-chip-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) {
  .eu-choice-btn:hover {
    border-color: var(--eu-brand-2);
    color: var(--eu-brand-2);
    box-shadow: 0 8px 18px -10px rgba(99,102,241,0.6);
    transform: translateY(-1px);
  }
}
.eu-choice-btn:active { transform: scale(0.97); }

.eu-choice-btn--other {
  color: #64748b;
  border-style: dashed;
  border-color: #c2cde0;
}
.eu-choice-btn--other svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) {
  .eu-choice-btn--other:hover { color: var(--eu-brand); border-color: var(--eu-brand); }
}

/* Primary action chip (e.g. "Yes — set up my product profile") */
.eu-choice-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #3869FA 0%, #2048D5 100%);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(32, 72, 213, 0.25);
}
@media (hover: hover) and (pointer: fine) {
  .eu-choice-btn--primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #2f5cf0 0%, #1b40c4 100%);
    border-color: transparent;
  }
}

/* Regulatory-scope verdict list (out-of-scope gate in chat) */
.eu-verdict-list {
  list-style: none;
  margin: 12px 0 2px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eu-verdict-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}
.eu-verdict-badge {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
  background: #e8edf6;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.eu-verdict-text b { color: #0f172a; font-weight: 700; }

/* Input row */
#state-chat .ns-input-group {
  padding: 16px 22px 20px;
  gap: 10px;
}
#state-chat .ns-input {
  border-radius: 13px;
  border: 1.5px solid #d4ddee;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
#state-chat .eu-btn--primary { border-radius: 13px; }

/* Hide the text input while choices are shown — click-only unless "Other" */
.eu-input--hidden { display: none; }

/* Invalid free-text answer feedback */
.eu-input--invalid .ns-input,
.eu-input--invalid #chat-input {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
.eu-input-error {
  margin: 8px 4px 0;
  font-size: 13px;
  font-weight: 500;
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: eu-shake 0.32s ease;
}
.eu-input-error::before {
  content: '';
  width: 14px; height: 14px; flex-shrink: 0;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
}
@keyframes eu-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .eu-input-error { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  #state-chat .ns-message,
  .eu-scan-card,
  .eu-choice-btn { animation: none; opacity: 1; transform: none; }
  .eu-typing-dots span { animation-duration: 1.6s; }
  #state-chat .ns-chat-messages { scroll-behavior: auto; }
}

/* ─── Review / Profile Card ──────────────────────────────────────────── */

.eu-profile-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  padding: 32px;
  border: 1px solid #e2e8f0;
  margin-bottom: 28px;
}

.eu-profile-card__name {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.eu-profile-card__type {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.eu-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.eu-profile-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eu-profile-field--full {
  grid-column: 1 / -1;
}

.eu-profile-field__label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eu-profile-field__value {
  font-size: 14px;
  color: #1e293b;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  min-height: 38px;
  line-height: 1.5;
}

.eu-profile-field__value.bool-yes {
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.eu-profile-field__value.bool-no {
  color: #64748b;
  background: #f8fafc;
}

.eu-profile-field__value.bool-unknown {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
  font-style: italic;
}

.eu-review-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ─── "We pre-filled some answers" verify banner ──────────────────────── */
.eu-review-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #eff5ff;
  border: 1px solid #cfe0fd;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
}
.eu-review-notice__icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--eu-brand);
  margin-top: 1px;
}
.eu-review-notice__icon svg { width: 20px; height: 20px; }
.eu-review-notice strong { color: #0f172a; }
.eu-review-notice .twin-infer {
  display: inline-block;
  font-size: 9.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 999px; background: #e2e8f0; color: #475569;
}
.eu-review-notice .twin-infer--verify { background: #fef3c7; color: #b45309; }

/* ─── Regulation scope toggle ─────────────────────────────────────────── */
.eu-scope {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.eu-scope__head { margin-bottom: 14px; }
.eu-scope__title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}
.eu-scope__hint {
  display: block;
  font-size: 12.5px;
  color: #64748b;
  margin-top: 3px;
}
.eu-scope__rows { display: flex; flex-direction: column; gap: 10px; }
.eu-scope-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  background: #f8fafc;
  transition: border-color .15s ease, background .15s ease, opacity .15s ease;
}
.eu-scope-row.is-on { border-color: #c7d2fe; background: #fff; }
.eu-scope-row:not(.is-on) { opacity: 0.62; }
.eu-scope-row__main { min-width: 0; }
.eu-scope-row__name {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 14px; font-weight: 600; color: #0f172a;
}
.eu-scope-row__status {
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.eu-scope-row__status--on { background: #dcfce7; color: #15803d; }
.eu-scope-row__status--na { background: #e2e8f0; color: #475569; }
.eu-scope-row__sub {
  display: block; font-size: 12px; color: #64748b; line-height: 1.5; margin-top: 4px;
}
/* iOS-style switch */
.eu-switch { position: relative; flex-shrink: 0; width: 44px; height: 26px; }
.eu-switch__cb, .eu-scope-row__cb {
  position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1;
}
.eu-switch__track {
  position: absolute; inset: 0; border-radius: 999px; background: #cbd5e1;
  transition: background .18s ease;
}
.eu-switch__thumb {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.25);
  transition: transform .18s cubic-bezier(0.22, 1, 0.36, 1);
}
.eu-scope-row__cb:checked ~ .eu-switch__track { background: var(--eu-brand); }
.eu-scope-row__cb:checked ~ .eu-switch__track .eu-switch__thumb { transform: translateX(18px); }
.eu-scope-row__cb:focus-visible ~ .eu-switch__track { box-shadow: 0 0 0 3px rgba(32,72,213,.25); }
@media (prefers-reduced-motion: reduce) {
  .eu-switch__track, .eu-switch__thumb { transition: none; }
}

/* ─── Profile card edit mode ─────────────────────────────────────────── */

.eu-profile-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.eu-profile-card__header .eu-profile-card__name,
.eu-profile-card__header .eu-profile-card__type {
  margin-bottom: 0;
}

.eu-edit-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.eu-edit-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.eu-edit-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.eu-edit-input {
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 11px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  line-height: 1.5;
}

.eu-edit-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.eu-edit-textarea {
  min-height: 80px;
  resize: vertical;
}

.eu-edit-name {
  font-size: 18px;
  font-weight: 700;
  padding: 6px 11px;
}

.eu-edit-type {
  font-size: 13px;
  color: #64748b;
}

.eu-edit-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.eu-btn-save {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: #6366f1;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.eu-btn-save:hover:not(:disabled) {
  background: #4f46e5;
}

.eu-btn-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.eu-btn-cancel {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.eu-btn-cancel:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* ─── Analyzing Screen ───────────────────────────────────────────────── */

.eu-analyzing-card {
  background: white;
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
}

.eu-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #e2e8f0;
  border-top-color: #448cf7;
  border-radius: 50%;
  animation: eu-spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

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

.eu-analyzing-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.eu-analyzing-status {
  font-size: 14px;
  color: #448cf7;
  margin-bottom: 28px;
  min-height: 20px;
  transition: all 0.3s;
}

.eu-analysis-steps {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.eu-analysis-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #64748b;
  transition: all 0.3s;
}

.eu-analysis-step__icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.eu-analysis-step.done {
  color: #15803d;
}

.eu-analysis-step.active {
  color: #1d4ed8;
  font-weight: 600;
}

/* Single, state-driven glyph (pending ○ / active → / done ✓). The glyph is
   rendered entirely via ::before so states never stack two icons. */
.eu-analysis-step[hidden] { display: none; }

.eu-analysis-step__icon::before {
  content: '○';
}

.eu-analysis-step.done .eu-analysis-step__icon::before {
  content: '✓';
}

.eu-analysis-step.active .eu-analysis-step__icon::before {
  content: '→';
  display: inline-block;
  animation: eu-astep-nudge 0.9s ease-in-out infinite;
}

@keyframes eu-astep-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(2px); }
}

.eu-analyzing-note {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

/* ─── Results ────────────────────────────────────────────────────────── */

#state-results {
  background: #f0f4f8;
  min-height: calc(100vh - 80px);
}

#state-results .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.eu-results-header {
  padding: 0 0 24px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.eu-results-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6366f1;
  margin: 0 0 6px;
}

.eu-results-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* Summary pills */
.eu-results-summary {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.eu-summary-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.eu-summary-pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.eu-summary-pill.ok .eu-summary-pill__dot { background: #22c55e; }
.eu-summary-pill.warn .eu-summary-pill__dot { background: #f59e0b; }
.eu-summary-pill.fail .eu-summary-pill__dot { background: #ef4444; }

/* Split-screen panels */
.eu-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.eu-panel {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.eu-panel__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 18px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}

.eu-panel--blue  { border-left: 4px solid #3b82f6; }
.eu-panel--purple { border-left: 4px solid #7c3aed; }

.eu-panel__law {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 3px;
}

.eu-panel--blue .eu-panel__law { color: #2563eb; }
.eu-panel--purple .eu-panel__law { color: #7c3aed; }

.eu-panel__title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

/* Compliance ring */
.eu-compliance-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
  position: relative;
}

.eu-compliance-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid transparent;
}

.eu-compliance-ring.high {
  background: #dcfce7;
  color: #15803d;
  border: 4px solid #22c55e;
}

.eu-compliance-ring.medium {
  background: #fef9c3;
  color: #854d0e;
  border: 4px solid #f59e0b;
}

.eu-compliance-ring.low {
  background: #fee2e2;
  color: #b91c1c;
  border: 4px solid #ef4444;
}

/* Panel items */
.eu-panel__items {
  padding: 12px 0;
  flex: 1;
}

.eu-checklist-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: flex-start;
}

.eu-checklist-item:last-child {
  border-bottom: none;
}

.eu-checklist-item__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.eu-checklist-item__icon.compliant {
  background: #dcfce7;
  color: #15803d;
}

.eu-checklist-item__icon.non-compliant {
  background: #fee2e2;
  color: #b91c1c;
}

.eu-checklist-item__icon.not-applicable {
  background: #f1f5f9;
  color: #64748b;
}

.eu-checklist-item__body {
  flex: 1;
  min-width: 0;
}

.eu-checklist-item__category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 2px;
}

.eu-checklist-item__text {
  font-size: 13px;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
}

.eu-checklist-item__reasoning {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.eu-checklist-item__article {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Gate / paywall */
.eu-panel__gate {
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eu-gate-blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.97) 50%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.eu-gate-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
}

.eu-gate__count {
  font-size: 14px;
  color: #0f172a;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Results footer */
.eu-results-footer {
  padding-bottom: 48px;
  text-align: center;
}

.eu-results-disclaimer {
  font-size: 12px;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Gate Modal ─────────────────────────────────────────────────────── */

.eu-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.eu-modal {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  animation: eu-modal-in 0.25s ease;
}

@keyframes eu-modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.eu-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 14px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.eu-modal__close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.eu-modal__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #1d4ed8;
}

.eu-modal__title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.eu-modal__sub {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Lead form */
.eu-gate-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eu-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.eu-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.eu-required {
  color: #ef4444;
}

.eu-field-error {
  font-size: 12px;
  color: #ef4444;
}

.eu-gate-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 13px;
}

.eu-gate-divider::before,
.eu-gate-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .eu-hero {
    padding: 96px 0 40px;
    min-height: auto;
  }
  .eu-hero .container { padding: 0 16px; }
  .eu-hero__eyebrow { gap: 6px; margin-bottom: 20px; }
  .eu-badge { font-size: 10px; padding: 3px 8px; }
  .eu-hero__headline { font-size: 24px; line-height: 1.25; margin-bottom: 14px; }
  .eu-hero__sub { font-size: 14px; line-height: 1.55; margin-bottom: 24px; }
  .eu-input-card { padding: 16px; border-radius: 14px; }
  .eu-tabs { flex-direction: column; gap: 4px; padding: 4px; border-radius: 8px; }
  .eu-tab { justify-content: flex-start; padding: 10px 12px; font-size: 13px; border-radius: 6px; white-space: normal; }
  .eu-textarea { min-height: 100px; font-size: 14px; padding: 12px; }
  .eu-input-field { font-size: 14px; padding: 12px; }
  .eu-btn--lg { padding: 14px 20px; font-size: 15px; }
  .eu-privacy-note { font-size: 11px; }
  .eu-trust-bar { flex-direction: column; gap: 8px; padding: 20px 0 0; }
  .eu-trust-item { font-size: 12px; }

  .eu-results-grid {
    grid-template-columns: 1fr;
  }

  .eu-progress-steps {
    gap: 0;
    padding: 0 8px;
  }

  .eu-step__label {
    display: none;
  }

  .eu-profile-grid {
    grid-template-columns: 1fr;
  }

  .eu-analyzing-card {
    padding: 24px 16px;
  }

  .eu-modal {
    padding: 24px 16px;
    margin: 16px;
    max-width: calc(100vw - 32px);
  }
}

/* ─── Lead capture (bottom of results, post-value) ─────────────────── */

.eu-lead-capture {
  margin-top: 40px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(68, 140, 247, 0.25);
  border-radius: 16px;
  padding: 36px 40px;
}

.eu-lead-capture__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.eu-lead-capture__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(68, 140, 247, 0.15);
  border-radius: 12px;
  color: #60a5fa;
  flex-shrink: 0;
}

.eu-lead-capture__text h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f1f5f9;
}

.eu-lead-capture__text p {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
}

.eu-lead-capture__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 280px;
}

.eu-lead-capture__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eu-lead-capture .eu-input-field {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.eu-lead-capture .eu-input-field::placeholder {
  color: #64748b;
}

.eu-lead-capture .eu-input-field:focus {
  border-color: #448CF7;
  background: rgba(255, 255, 255, 0.09);
}

@media (max-width: 900px) {
  .eu-lead-capture {
    padding: 28px 24px;
  }

  .eu-lead-capture__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .eu-lead-capture__icon {
    display: none;
  }

  .eu-lead-capture__form {
    min-width: 0;
  }
}

/* ─── Section-grouped rows (summary view, pre-gate) ─────────────────── */

.eu-section-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.eu-section-row:last-child {
  border-bottom: none;
}

.eu-section-row__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eu-section-row__icon--pass { background: #dcfce7; color: #15803d; }
.eu-section-row__icon--fail { background: #fee2e2; color: #b91c1c; }
.eu-section-row__icon--na   { background: #f1f5f9; color: #64748b; }

.eu-section-row__name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
}

.eu-section-row__badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
}

.eu-section-row__badge--pass { background: #dcfce7; color: #15803d; }
.eu-section-row__badge--fail { background: #fee2e2; color: #b91c1c; }
.eu-section-row__badge--na   { background: #f1f5f9; color: #64748b; }

.eu-panel__all-clear {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: #15803d;
}

.eu-panel__pass-count {
  padding: 8px 0.9rem;
  font-size: 0.76rem;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  margin: 0;
}

/* ─── Results gate (two options: waitlist / email PDF) ──────────────── */

.eu-results-gate {
  margin-top: 32px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.eu-results-gate__heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #f1f5f9;
}

.eu-results-gate__heading svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #448CF7;
}

.eu-results-gate__heading h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}

.eu-results-gate__heading p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.eu-gate-options {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: stretch;
}

/* Right column: log in + email PDF stacked. */
.eu-gate-secondary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eu-gate-option {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eu-gate-secondary .eu-gate-option {
  flex: 1;
}

/* On the featured card the perks list grows, pushing the CTA to the bottom. */
.eu-gate-option--featured .eu-gate-form {
  margin-top: auto;
}

.eu-gate-option h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.eu-gate-option__desc {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

.eu-gate-option--featured {
  border-color: #448CF7;
  background: #eff6ff;
}

.eu-gate-option__badge {
  display: inline-block;
  background: #448CF7;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}

.eu-gate-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.eu-gate-perks li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.875rem;
  color: #374151;
}

.eu-gate-perks svg {
  color: #16a34a;
  flex-shrink: 0;
}

.eu-link {
  color: #448CF7;
  text-decoration: underline;
}

.eu-gate-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  color: #94a3b8;
  font-size: 0.8rem;
  font-style: italic;
}

.eu-gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.eu-gate-form .eu-input-field {
  background: #fff;
  border-color: #d1d5db;
  color: #0f172a;
}

.eu-gate-success {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #16a34a;
  font-size: 0.875rem;
  margin: 0;
}

/* ─── Full details section (revealed post-gate) ─────────────────────── */

.eu-full-details__header {
  margin-top: 48px;
  margin-bottom: 28px;
  padding-top: 48px;
  border-top: 2px solid #e2e8f0;
  text-align: center;
}

.eu-full-details__header h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
}

.eu-full-details__header p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

/* ─── Responsive gate ───────────────────────────────────────────────── */

@media (max-width: 860px) {
  .eu-results-gate {
    padding: 28px 20px;
    margin-left: -8px;
    margin-right: -8px;
  }

  .eu-gate-options {
    grid-template-columns: 1fr;
  }

  .eu-gate-divider {
    width: auto;
    padding: 16px 0;
    flex-direction: row;
  }

  .eu-gate-divider::before,
  .eu-gate-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
    margin: 0 12px;
  }
}

/* ── Profile section labels ─────────────────────────────────────────────── */
.eu-profile-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 20px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.eu-profile-section-label:first-child {
  margin-top: 0;
}

/* ── Scope summary lines ────────────────────────────────────────────────── */
.eu-scope-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 20px;
}

.eu-scope-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid transparent;
}

.eu-scope-line--na       { background: #f8fafc; border-color: #e2e8f0; color: #64748b; }
.eu-scope-line--low      { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.eu-scope-line--medium   { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.eu-scope-line--high     { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.eu-scope-line--critical { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.eu-scope-line--unknown  { background: #f8fafc; border-color: #cbd5e1; color: #475569; }

.eu-scope-line__act {
  font-weight: 600;
  min-width: 68px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.eu-scope-line__verdict {
  flex: 1;
}

/* ── Bool field value colours ───────────────────────────────────────────── */
.bool-yes     { color: #16a34a; font-weight: 500; }
.bool-no      { color: #dc2626; font-weight: 500; }
.bool-unknown { color: #94a3b8; font-style: italic; }

/* ── Gate footer note ───────────────────────────────────────────────────── */
.eu-gate-option__footer-note {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin-top: 8px;
}

/* =====================================================================
   Audit Table — results redesign (pre-gate and post-gate)
   ===================================================================== */

/* ── Score bar replacing summary pills ── */
.eu-audit-scorebar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.75rem 0;
}

.eu-audit-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3em 0.85em;
  border-radius: 20px;
}
.eu-audit-pill--red   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.eu-audit-pill--green { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.eu-audit-pill--gray  { background: #f9fafb; color: #6b7280; border: 1px solid #e5e7eb; }

/* ── Audit table layout ── */
.eu-audit-table {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.eu-audit-thead,
.eu-audit-row {
  display: grid;
  grid-template-columns: 160px 90px 1fr 110px;
  gap: 0;
  align-items: start;
  padding: 0.55rem 0.9rem;
  min-width: 0;
}

.eu-audit-thead {
  background: #f9fafb;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}

.eu-audit-row {
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.82rem;
  color: #374151;
  cursor: default;
  transition: background 0.1s;
}
.eu-audit-row:last-child { border-bottom: none; }
.eu-audit-row:hover { background: #f9fafb; }

/* Post-gate table: accordion rows (details/summary) */
.eu-audit-accordion {
  border-bottom: 1px solid #f3f4f6;
}
.eu-audit-accordion:last-child { border-bottom: none; }
.eu-audit-accordion > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.eu-audit-accordion > summary::-webkit-details-marker { display: none; }
.eu-audit-accordion[open] > summary { background: #f5f3ff; }

/* Post-gate table with accordion — extra column for toggle */
.eu-audit-table--full .eu-audit-thead,
.eu-audit-table--full .eu-audit-row {
  grid-template-columns: 160px 90px 1fr 110px 24px;
}

.eu-audit-accordion__toggle {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 0.7rem;
}
.eu-audit-accordion__toggle::after { content: '+'; }
.eu-audit-accordion[open] .eu-audit-accordion__toggle::after { content: '−'; }

/* Expanded detail pane */
.eu-audit-detail {
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: #fafafa;
  border-top: 1px solid #f3f4f6;
}
.eu-audit-detail__req {
  font-size: 0.83rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.35rem;
}
.eu-audit-detail__reasoning {
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.55;
  margin-bottom: 0.35rem;
}
.eu-audit-detail__rec {
  font-size: 0.82rem;
  color: #1a1a1a;
  background: #fff3cd;
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
  margin-top: 0.4rem;
}
.eu-audit-detail__rec-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  color: #92400e;
}

/* ── Row status cells ── */
.eu-audit-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.eu-audit-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.eu-audit-dot--red   { background: #dc2626; }
.eu-audit-dot--green { background: #16a34a; }
.eu-audit-dot--gray  { background: #d1d5db; }

/* ── Severity badges ── */
.eu-audit-sev {
  font-size: 0.7rem; font-weight: 600;
  padding: 0.15em 0.5em; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.04em;
  display: inline-block;
}
.eu-audit-sev--critical { background: #fef2f2; color: #b91c1c; }
.eu-audit-sev--major    { background: #fff7ed; color: #c2410c; }
.eu-audit-sev--minor    { background: #fffbeb; color: #92400e; }

/* ── Article chip ── */
.eu-audit-article {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #6b7280;
  white-space: nowrap;
}

/* ── Section cell ── */
.eu-audit-section {
  font-size: 0.82rem;
  color: #374151;
  min-width: 0;
  word-wrap: break-word;
}

/* ── Row status variants ── */
.eu-audit-row--non-compliant .eu-audit-status { color: #b91c1c; }
.eu-audit-row--compliant .eu-audit-status     { color: #15803d; }
.eu-audit-row--not-applicable .eu-audit-status { color: #9ca3af; }
/* Direct status color modifiers (used by finding cards) */
.eu-audit-status--non-compliant  { color: #b91c1c; font-weight: 600; }
.eu-audit-status--compliant      { color: #15803d; font-weight: 600; }
.eu-audit-status--not-applicable { color: #9ca3af; font-weight: 500; }

/* ── All-clear / empty state ── */
.eu-audit-all-clear {
  font-size: 0.85rem;
  color: #16a34a;
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eu-audit-all-clear::before { content: '✓'; font-weight: 700; }

/* ── Report CTA bar (appears after gate unlock) ── */
.eu-report-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}
.eu-report-cta__text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e40af;
}
.eu-report-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  background: #2563eb;
  color: #fff;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.eu-report-cta__btn:hover { background: #1d4ed8; }

/* =====================================================================
   Professional Finding Cards — post-gate full analysis view
   Each card mirrors how a compliance consultant would present a finding:
   header → legal basis (quoted requirement) → assessment → action.
   ===================================================================== */

.eu-findings-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.75rem;
}

/* ── Individual finding card ── */
.eu-finding-card {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.1s;
}
.eu-finding-card:last-child { border-bottom: none; }

/* compact pre-gate style */
.eu-finding-card--compact {
  padding: 0.7rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem 0.9rem;
  align-items: center;
  cursor: default;
}
.eu-finding-card--compact:hover { background: #fafafa; }

.eu-finding-card__compact-status {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; font-weight: 600; color: #b91c1c;
  white-space: nowrap;
}
.eu-finding-card__compact-body { min-width: 0; }
.eu-finding-card__compact-article {
  font-size: 0.75rem; font-weight: 700; color: #374151;
  letter-spacing: 0.02em; margin-bottom: 0.1rem;
}
.eu-finding-card__compact-section {
  font-size: 0.78rem; color: #6b7280;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.eu-finding-card__compact-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem;
  flex-shrink: 0;
}

/* full details card — accordion */
.eu-finding-card--full {
  border: none;
}
.eu-finding-card--full > summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: auto auto auto 1fr 20px;
  gap: 0 0.75rem;
  align-items: center;
  transition: background 0.1s;
}
.eu-finding-card--full > summary:hover { background: #fafafa; }
.eu-finding-card--full > summary::-webkit-details-marker { display: none; }
.eu-finding-card--full[open] > summary { background: #f5f5ff; }
.eu-finding-card--full[open] > summary .eu-finding-toggle::after { content: '−'; }

.eu-finding-toggle {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 0.75rem; flex-shrink: 0;
}
.eu-finding-toggle::after { content: '+'; }

.eu-finding-card__article {
  font-size: 0.78rem; font-weight: 700;
  color: #374151; letter-spacing: 0.02em;
  white-space: nowrap;
}
.eu-finding-card__section-name {
  font-size: 0.82rem; color: #6b7280;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Expanded detail body */
.eu-finding-card__body {
  padding: 0 1rem 1rem 1rem;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}

/* Legal basis block */
.eu-finding-card__legal {
  margin-bottom: 0.85rem;
  padding-top: 0.85rem;
}
.eu-finding-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eu-finding-section-label a {
  font-size: 0.68rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
}
.eu-finding-section-label a:hover { text-decoration: underline; }

.eu-finding-card__quote {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #374151;
  border-left: 3px solid #d1d5db;
  padding-left: 0.85rem;
  margin: 0;
  font-style: italic;
}

/* Finding/assessment block */
.eu-finding-card__assessment { margin-bottom: 0.85rem; }
.eu-finding-card__assessment-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #1a1a1a;
  margin: 0;
}

/* Required action block */
.eu-finding-card__action {
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
}
.eu-finding-card__action--non-compliant {
  background: #fef9ec;
  border: 1px solid #fde68a;
}
.eu-finding-card__action--compliant {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.eu-finding-card__action--na {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}
.eu-finding-card__action-label {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: #92400e; margin-bottom: 0.3rem;
  display: block;
}
.eu-finding-card__action--compliant .eu-finding-card__action-label { color: #15803d; }
.eu-finding-card__action--na .eu-finding-card__action-label { color: #6b7280; }
.eu-finding-card__action-text {
  font-size: 0.84rem; line-height: 1.55; color: #1a1a1a; margin: 0;
}

/* Priority action plan — top of full details panel */
.eu-priority-plan {
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.eu-priority-plan--empty {
  border-color: #bbf7d0;
}
.eu-priority-plan__heading {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; font-weight: 700; color: #b91c1c;
  margin-bottom: 0.65rem;
}
.eu-priority-plan--empty .eu-priority-plan__heading { color: #15803d; }
.eu-priority-plan__list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.eu-priority-plan__item {
  display: flex; gap: 0.65rem; align-items: flex-start;
  font-size: 0.83rem; line-height: 1.5; color: #374151;
}
.eu-priority-plan__num {
  flex-shrink: 0; width: 20px; height: 20px;
  border-radius: 50%; background: #dc2626; color: #fff;
  font-size: 0.68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.eu-priority-plan__item--major .eu-priority-plan__num { background: #ea580c; }
.eu-priority-plan__item--minor .eu-priority-plan__num { background: #d97706; }

/* Full details header */
.eu-full-details__header {
  padding: 1rem 0 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1.25rem;
}
.eu-full-details__header h3 {
  font-size: 1.1rem; font-weight: 700; color: #111; margin-bottom: 0.25rem;
}
.eu-full-details__header p {
  font-size: 0.85rem; color: #6b7280;
}

/* Compliance disclaimer */
.eu-results-disclaimer {
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.6;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  border-top: 1px solid #f3f4f6;
  padding-top: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   Vanta-style compliance dashboard
   ═══════════════════════════════════════════════════════════════════════ */

#eu-completion-header { margin-bottom: 20px; }

/* ── Completion header card ─────────────────────────────────────────────── */
.vd-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.vd-header__label {
  font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 0 0 2px;
}
.vd-header__sub {
  font-size: 0.82rem; color: #64748b; margin: 0 0 6px;
}
.vd-header__big {
  font-size: 3.1rem; font-weight: 800; line-height: 1; color: #0f172a;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.vd-header__metrics {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}

/* ── Progress bars ──────────────────────────────────────────────────────── */
.vd-bar {
  height: 8px; background: #eef1f5; border-radius: 999px; overflow: hidden;
}
.vd-bar--lg { height: 12px; }
.vd-bar__fill {
  height: 100%; border-radius: 999px; transition: width 0.6s cubic-bezier(.4,0,.2,1);
}
.vd-bar__fill--good { background: linear-gradient(90deg, #22c55e, #16a34a); }
.vd-bar__fill--warn { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.vd-bar__fill--bad  { background: linear-gradient(90deg, #f87171, #dc2626); }

/* ── Metric mini-bars ───────────────────────────────────────────────────── */
.vd-metric__top {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px;
}
.vd-metric__name { font-size: 0.85rem; font-weight: 600; color: #334155; }
.vd-metric__pct  { font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.vd-metric__pct--muted { color: #94a3b8; font-weight: 700; }
.vd-metric__note { font-size: 0.72rem; color: #94a3b8; margin-top: 5px; }
.vd-metric--na .vd-metric__name { color: #64748b; }

/* ── Chips ──────────────────────────────────────────────────────────────── */
.vd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vd-chip {
  font-size: 0.76rem; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  border: 1px solid transparent;
}
.vd-chip--red   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.vd-chip--green { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.vd-chip--gray  { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }

/* ── Regulation group ───────────────────────────────────────────────────── */
.vd-reg { margin-bottom: 28px; }
.vd-reg__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 10px; margin-bottom: 8px;
}
.vd-reg__id { display: flex; flex-direction: column; gap: 1px; }
.vd-reg__code { font-size: 1rem; font-weight: 700; color: #0f172a; }
.vd-reg__full { font-size: 0.74rem; color: #94a3b8; }
.vd-reg__link {
  font-size: 0.78rem; font-weight: 600; color: #2563eb; text-decoration: none; white-space: nowrap;
}
.vd-reg__link:hover { text-decoration: underline; }

/* ── Chapter accordion ──────────────────────────────────────────────────── */
.vd-chapter {
  background: #fff; border: 1px solid #e8ebf0; border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
}
.vd-chapter[open] { box-shadow: 0 2px 10px rgba(16, 24, 40, 0.05); }
.vd-chapter__summary {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  cursor: pointer; list-style: none; user-select: none;
}
.vd-chapter__summary::-webkit-details-marker { display: none; }
.vd-chapter__summary:hover { background: #fafbfc; }
.vd-chapter__chevron {
  width: 9px; height: 9px; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8;
  transform: rotate(-45deg); transition: transform 0.2s; flex-shrink: 0; margin-left: 2px;
}
.vd-chapter[open] > .vd-chapter__summary .vd-chapter__chevron { transform: rotate(45deg); }
.vd-chapter__title {
  flex: 1; font-size: 0.95rem; font-weight: 600; color: #1e293b;
}

/* ── Status pill (X/Y controls OK) ──────────────────────────────────────── */
.vd-pill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 0.78rem; font-weight: 600; padding: 5px 12px 5px 8px; border-radius: 999px;
  border: 1px solid #e2e8f0;
}
.vd-pill--ok   { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.vd-pill--warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.vd-pill--na   { background: #f8fafc; color: #64748b; }
.vd-ringicon { flex-shrink: 0; }

/* ── Chapter body / control table ───────────────────────────────────────── */
.vd-chapter__body { border-top: 1px solid #f1f5f9; padding: 6px 12px 12px; }
.vd-ctl-head {
  display: grid; grid-template-columns: 1fr 90px 130px 16px; gap: 12px;
  padding: 10px 8px 8px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #b0b8c4;
}

/* ── Control row ────────────────────────────────────────────────────────── */
.vd-ctl { border-top: 1px solid #f1f5f9; }
.vd-ctl:first-of-type { border-top: none; }
.vd-ctl__summary {
  display: grid; grid-template-columns: 1fr 90px 130px 16px; gap: 12px; align-items: center;
  padding: 12px 8px; cursor: pointer; list-style: none;
}
.vd-ctl__summary::-webkit-details-marker { display: none; }
.vd-ctl__summary:hover { background: #fafbfc; }
.vd-ctl__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vd-ctl__title {
  font-size: 0.86rem; font-weight: 600; color: #1e293b; line-height: 1.35;
}
.vd-ctl__art { font-size: 0.72rem; color: #94a3b8; }
.vd-ctl__ready {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem;
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.vd-ctl__ready--ok  { color: #16a34a; }
.vd-ctl__ready--bad { color: #dc2626; }
.vd-ctl__ready--na  { color: #94a3b8; }
.vd-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.vd-dot--ok  { background: #16a34a; box-shadow: 0 0 0 3px #dcfce7; }
.vd-dot--bad { background: #dc2626; box-shadow: 0 0 0 3px #fee2e2; }
.vd-dot--na  { background: #cbd5e1; }
.vd-status {
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 6px;
  text-align: center; white-space: nowrap;
}
.vd-status--ok  { background: #f0fdf4; color: #15803d; }
.vd-status--bad { background: #fef2f2; color: #b91c1c; }
.vd-status--na  { background: #f1f5f9; color: #64748b; }
.vd-ctl__chevron {
  width: 8px; height: 8px; border-right: 2px solid #cbd5e1; border-bottom: 2px solid #cbd5e1;
  transform: rotate(-45deg); transition: transform 0.2s; justify-self: center;
}
.vd-ctl[open] > .vd-ctl__summary .vd-ctl__chevron { transform: rotate(45deg); }

/* ── Control expanded body ──────────────────────────────────────────────── */
.vd-ctl__body { padding: 4px 8px 18px; }
.vd-ctl__block { margin-bottom: 12px; }
.vd-ctl__block-label {
  display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: #94a3b8; margin-bottom: 5px;
}
.vd-ctl__quote {
  font-size: 0.84rem; color: #475569; line-height: 1.55; margin: 0;
  padding-left: 12px; border-left: 3px solid #e2e8f0;
}
.vd-ctl__text { font-size: 0.84rem; color: #475569; line-height: 1.55; margin: 0; }
.vd-ctl__action {
  border-radius: 8px; padding: 12px 14px; margin-top: 12px;
}
.vd-ctl__action--bad { background: #fef2f2; border: 1px solid #fecaca; }
.vd-ctl__action--bad .vd-ctl__text { color: #991b1b; }
.vd-ctl__action--ok  { background: #f0fdf4; border: 1px solid #bbf7d0; }
.vd-ctl__action--na  { background: #f8fafc; border: 1px solid #e2e8f0; }
.vd-ctl__locked {
  display: flex; align-items: center; gap: 7px; margin-top: 12px;
  font-size: 0.8rem; font-weight: 500; color: #92400e;
  background: #fffbeb; border: 1px dashed #fcd34d; border-radius: 8px; padding: 10px 14px;
}
.vd-eurlex {
  font-size: 0.72rem; font-weight: 600; color: #2563eb; text-decoration: none; margin-left: 6px;
}
.vd-eurlex:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .vd-header { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .vd-ctl-head { grid-template-columns: 1fr 64px 16px; }
  .vd-ctl-head span:nth-child(2) { display: none; }
  .vd-ctl__summary { grid-template-columns: 1fr auto 16px; gap: 10px; }
  .vd-ctl__ready { display: none; }
}

/* ── Dashboard status filter ────────────────────────────────────────────── */
.vd-filter {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.vd-filter__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.vd-fchip {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 999px;
  padding: 6px 14px; font-size: 0.82rem; font-weight: 600; color: #475569; cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.vd-fchip:hover { background: #f8fafc; }
.vd-fchip.is-active { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.vd-filter__na {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 500; color: #64748b; cursor: pointer; user-select: none;
}
.vd-filter__na input { accent-color: #4f46e5; width: 15px; height: 15px; }

/* ── Resolved (accepted / justified) control badge ──────────────────────── */
.vd-resolved {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0;
}
.vd-ctl--resolved .vd-status--bad { background: #f0fdf4; color: #15803d; }
.vd-ctl--resolved .vd-dot--bad { background: #16a34a; box-shadow: 0 0 0 3px #dcfce7; }

/* ── "Track in remediation" button on findings ──────────────────────────── */
.vd-gotorem {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  background: #fff; border: 1px solid #fecaca; color: #b91c1c;
  font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.vd-gotorem:hover { background: #fef2f2; border-color: #fca5a5; }
.vd-ctl--resolved .vd-gotorem { border-color: #bbf7d0; color: #15803d; }
.vd-ctl--resolved .vd-gotorem:hover { background: #f0fdf4; }

/* ── Mobile: audit table stacked layout ──────────────────────────────────── */
@media (max-width: 640px) {
  .eu-audit-thead { display: none; }
  .eu-audit-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
  }
  .eu-audit-scorebar { flex-direction: row; flex-wrap: wrap; }
  .eu-lead-capture { padding: 24px 18px; }
  .eu-lead-capture__inner { grid-template-columns: 1fr; gap: 16px; }
  .eu-lead-capture__icon { display: none; }
  .eu-lead-capture__form { min-width: 0; }
  .vd-filter { flex-direction: column; align-items: flex-start; }
  .vd-filter__chips { width: 100%; }
  .vd-fchip { font-size: 0.78rem; padding: 5px 12px; }
}

/* ─── Applicability notice (regulatory scope, shown above findings) ──── */
.eu-appli {
  margin: 0 0 22px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e7ecf6;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  animation: eu-msg-in 0.4s var(--eu-ease-out, ease) both;
}
.eu-appli__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}
.eu-appli__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.eu-appli-card {
  padding: 15px 16px;
  border-radius: 13px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.eu-appli-card--applies { border-color: #bbf7d0; background: #f3fbf6; }
.eu-appli-card--na { border-color: #e2e8f0; background: #f8fafc; }
.eu-appli-card__head {
  display: flex; align-items: center; gap: 9px; margin-bottom: 8px;
}
.eu-appli-card__icon {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
}
.eu-appli-card__icon svg { width: 15px; height: 15px; }
.eu-appli-card--applies .eu-appli-card__icon { background: #d8f3e3; color: #15803d; }
.eu-appli-card--na .eu-appli-card__icon { background: #e7edf6; color: #64748b; }
.eu-appli-card__code {
  font-size: 13.5px; font-weight: 700; color: #0f172a; flex: 1;
}
.eu-appli-card__tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  white-space: nowrap; flex-shrink: 0;
}
.eu-appli-card__tag--applies { background: #16a34a; color: #fff; }
.eu-appli-card__tag--na { background: #e2e8f0; color: #475569; }
.eu-appli-card__reason {
  margin: 0; font-size: 13px; line-height: 1.55; color: #475569;
}

/* Regulation the user turned off: shown but greyed, analysis hidden. */
.eu-appli-card--skipped {
  border-color: #e2e8f0; background: #f8fafc; border-style: dashed; opacity: 0.7;
}
.eu-appli-card--skipped .eu-appli-card__icon { background: #eef2f7; color: #94a3b8; }
.eu-appli-card--skipped .eu-appli-card__code { color: #64748b; }
.eu-appli-card--skipped .eu-appli-card__reason { color: #94a3b8; }
.eu-appli-card__tag--skipped { background: #eef2f7; color: #94a3b8; }

/* Non-applicable regulation panel (replaces a wall of N/A controls) */
.vd-reg--na .vd-reg-na {
  margin-top: 10px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}
.vd-reg-na__badge {
  display: inline-block;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569; background: #e2e8f0;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.vd-reg-na__text { margin: 0; font-size: 13.5px; line-height: 1.6; color: #475569; }

@media (max-width: 640px) {
  .eu-appli__grid { grid-template-columns: 1fr; }
}

/* End-of-demo Book-a-Demo CTA row */
.eu-gate-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.eu-gate-cta-row .eu-btn { text-decoration: none; }
