:root {
  --purple: #6b2fa0;
  --lavender: #d4b8e8;
  --navy: #1f3a5f;
  --ink: #172033;
  --muted: #667085;
  --line: rgba(107, 47, 160, 0.16);
  --shadow: 0 22px 70px rgba(31, 58, 95, 0.16);
}

* { box-sizing: border-box; }
html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(212, 184, 232, 0.72), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(232, 116, 12, 0.15), transparent 28%),
    linear-gradient(145deg, #f9f7fc 0%, #eef3fb 52%, #fbf7ef 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(107, 47, 160, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 47, 160, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 2px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font: 800 1.1rem "Montserrat", sans-serif;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--purple);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.back-link {
  color: var(--navy);
  font: 700 0.84rem "Montserrat", sans-serif;
  text-decoration: none;
  border: 1px solid rgba(31, 58, 95, 0.16);
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.76);
}

.back-link:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.verifier-shell {
  position: relative;
  overflow: hidden;
  min-height: 820px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.frame-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  background: white;
  font-weight: 600;
}

.frame-loading[hidden] { display: none; }

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(107, 47, 160, 0.16);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

iframe {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  min-height: 920px;
  border: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.25s ease;
}

iframe.is-ready { opacity: 1; }

.privacy-note {
  margin: 18px 6px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
  text-align: center;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 4px 0;
  color: #697386;
  font-size: 0.76rem;
}

.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;
}

noscript {
  display: block;
  margin: 20px;
  padding: 15px;
  background: #fff3cd;
  color: #6b5000;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 10px;
  }

  .site-header { padding-bottom: 14px; }
  .brand img { width: 44px; height: 44px; }
  .brand-copy strong { font-size: 0.98rem; }
  .brand-copy small { font-size: 0.58rem; }
  .back-link { padding: 9px 11px; font-size: 0.7rem; }
  .verifier-shell { min-height: 880px; border-radius: 20px; }
  iframe { min-height: 980px; }
  footer { flex-direction: column; }
}
