/* ——— Cru theme overrides ——— */
[data-product-theme="cru"] .btn-primary {
  box-shadow: var(--shadow-glow-blue);
}
[data-product-theme="cru"] .btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-glow-blue), var(--shadow-md);
}

/* ——— Form layouts ——— */
.cru-split-grid,
.cru-access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.ad-form,
.access-form {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.ad-form label,
.access-form label {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.ad-form input,
.access-form input {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: var(--text-base);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.ad-form input:focus-visible,
.access-form input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.ad-form .is-valid,
.access-form .is-valid {
  border-color: var(--success);
}

.ad-form .is-invalid,
.access-form .is-invalid {
  border-color: var(--warning);
}

.form-note {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--muted);
}

.structured-list {
  margin: var(--space-4) 0;
  padding-left: var(--space-5);
  color: var(--muted);
}

.structured-list li {
  margin-bottom: var(--space-2);
}

.comparison-line-compact {
  margin-top: var(--space-3);
}

/* ——— Cru investigation board hero ——— */
.hero-scene--cru {
  background:
    radial-gradient(ellipse 55% 50% at 50% 48%, rgba(45, 106, 168, 0.16), transparent 62%),
    linear-gradient(165deg, #f4f8fd 0%, #e8f0fa 48%, #dde8f5 100%);
  border-color: rgba(20, 58, 99, 0.16);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.hero-scene--cru .board-surface {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 48%, rgba(45, 106, 168, 0.1), transparent 42%),
    linear-gradient(rgba(20, 58, 99, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 58, 99, 0.045) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  overflow: hidden;
}
.hero-scene--cru .board-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 18% 22%, rgba(92, 167, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 60% at 86% 78%, rgba(20, 58, 99, 0.08), transparent 50%);
  pointer-events: none;
}
.hero-scene--cru .board-surface::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid rgba(20, 58, 99, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 0;
}

.board-strings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.board-string {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-opacity: 0.55;
  stroke-linecap: round;
}
.board-string-alt {
  stroke: #c45c4a;
  stroke-opacity: 0.5;
}

.evidence-slip {
  position: absolute;
  z-index: 2;
  width: min(118px, 28%);
  padding: 14px 10px 10px;
  background: #fffef9;
  border: 1px solid rgba(20, 58, 99, 0.14);
  box-shadow: 0 6px 16px rgba(15, 33, 56, 0.1);
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-secondary);
  animation: evidence-float 6s ease-in-out infinite;
}
.evidence-slip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
}
.evidence-slip em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.evidence-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.evidence-pin {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a7a, #c44536 60%, #8a2a22);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

.slip-1 { top: 8%; left: 6%; transform: rotate(-6deg); animation-delay: 0s; }
.slip-2 { top: 6%; right: 5%; transform: rotate(5deg); animation-delay: -1.2s; }
.slip-3 { bottom: 14%; left: 4%; transform: rotate(4deg); animation-delay: -2.4s; }
.slip-4 { bottom: 10%; right: 4%; transform: rotate(-4deg); animation-delay: -3.6s; }
.slip-5 { top: 4%; left: 42%; transform: rotate(-1deg); animation-delay: -4.8s; width: min(104px, 24%); }

@keyframes evidence-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

.verified-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 0%, #eef4fc 100%);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(45, 106, 168, 0.12), 0 12px 28px rgba(15, 33, 56, 0.14);
  text-align: center;
}
.verified-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(45, 106, 168, 0.35);
  animation: verified-pulse 3.5s ease-in-out infinite;
}
.verified-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.verified-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
@keyframes verified-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
}

@media (max-width: 1024px) {
  .evidence-slip {
    width: min(104px, 30%);
    padding: 12px 8px 8px;
    font-size: 9px;
  }
  .evidence-slip strong { font-size: 10px; }
  .verified-seal {
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
  }
  .verified-label { font-size: 12px; }
  .slip-5 { width: min(96px, 26%); }
}

@media (max-width: 600px) {
  .evidence-slip em { display: none; }
  .hero-scene--cru {
    overflow: hidden;
  }
  .hero-scene--cru .board-surface {
    overflow: visible;
    transform: scale(0.94);
    transform-origin: center center;
  }
  .evidence-slip {
    width: min(92px, 28%);
    padding: 10px 7px 7px;
  }
  .slip-1 { top: 10%; left: 8%; }
  .slip-2 { top: 8%; right: 7%; }
  .slip-3 { bottom: 16%; left: 6%; }
  .slip-4 { bottom: 12%; right: 6%; }
  .slip-5 {
    top: 6%;
    left: 36%;
    width: min(88px, 26%);
  }
  .verified-seal {
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
  }
  .verified-label { font-size: 11px; }
  .verified-sub { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .evidence-slip,
  .verified-ring { animation: none; }
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .cru-split-grid,
  .cru-access-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .access-form,
  .ad-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .access-form .btn,
  .ad-form .btn {
    width: 100%;
    min-height: 44px;
  }
  .access-form input,
  .access-form textarea,
  .ad-form input,
  .ad-form textarea,
  .ad-form select {
    font-size: 16px;
    min-height: 44px;
  }
}
