/* Ship A — dark results until email gate unlocks
 * FAIL patch 5 Sep: DOM must be empty of scores while locked.
 * Blur is defense-in-depth only — never the sole lock.
 * Print must NOT strip blur and reveal scores.
 */
.aa-gate-root {
  position: relative;
}
.aa-gate-root.aa-gate-locked > *:not(.aa-gate-overlay) {
  filter: blur(6px);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}
.aa-gate-root.aa-gate-locked .aa-gate-overlay {
  filter: none;
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
}
.aa-result-locked {
  margin: 24px 0;
  padding: 20px 18px;
  font-size: 15px;
  line-height: 1.45;
  color: #3a3344;
  background: #f7f1e6;
  border: 1px solid #c9a227;
  border-radius: 4px;
}
.aa-gate-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px 48px;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.88) 100%);
  border-radius: 4px;
  min-height: 320px;
}
.aa-gate-card {
  width: min(440px, 100%);
  background: #f7f1e6;
  color: #0a1628;
  border: 1px solid #c9a227;
  border-radius: 4px;
  padding: 22px 22px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.aa-gate-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5a3e;
}
.aa-gate-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  color: #0a1628;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.aa-gate-hint {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: #3a3344;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.aa-gate-form {
  display: grid;
  gap: 10px;
}
.aa-gate-field {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #0a1628;
}
.aa-gate-field input {
  font: inherit;
  font-weight: 400;
  padding: 9px 10px;
  border: 1px solid #b8a88a;
  border-radius: 3px;
  background: #fffef9;
  color: #0a1628;
}
.aa-gate-submit {
  margin-top: 4px;
  appearance: none;
  border: 0;
  border-radius: 3px;
  padding: 11px 14px;
  background: #0a1628;
  color: #f7f1e6;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.aa-gate-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.aa-gate-err {
  margin: 0;
  font-size: 13px;
  color: #8b1e1e;
}
.aa-gate-soft {
  margin: 0;
  font-size: 12px;
  color: #6b5a3e;
}
.aa-gate-fine {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #6b5a3e;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.aa-gate-root.aa-gate-unlocked .aa-gate-overlay {
  display: none;
}
.aa-gate-accept {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #0a1628;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #0a1628;
  background: #fff;
}
.aa-gate-accept input { margin-top: 2px; }

/* Locked print: hide everything useful — do NOT strip blur (that was the leak) */
@media print {
  .aa-gate-overlay { display: none !important; }
  .aa-gate-root.aa-gate-locked > *:not(.aa-gate-overlay) {
    display: none !important;
    visibility: hidden !important;
    filter: none !important;
    opacity: 0 !important;
  }
  .aa-gate-root.aa-gate-locked::after {
    content: "Result locked. Work email unlocks the branded note from zs@altamontgroup.ca.";
    display: block !important;
    visibility: visible !important;
    font-size: 14px;
    padding: 24px;
    color: #0a1628;
  }
  .no-print { display: none !important; }
}
