:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: rgba(15, 23, 42, 0.88);
  --panel-strong: rgba(124, 58, 237, 0.2);
  --text: #e5eefb;
  --muted: #a5b4d4;
  --accent: #7c3aed;
  --accent-soft: #22d3ee;
  --border: rgba(148, 163, 184, 0.2);
  --warning: #fbbf24;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(124, 58, 237, 0.35), transparent 30%),
    linear-gradient(180deg, #111827 0%, var(--bg) 100%);
  color: var(--text);
}

.payment-processing {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(11, 16, 32, 0.82);
}

.payment-processing.is-visible {
  display: grid;
}

.payment-failure {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(11, 16, 32, 0.82);
}

.payment-failure.is-visible {
  display: grid;
}

.payment-processing-content {
  min-width: min(100%, 280px);
}

.payment-processing-content,
.payment-failure-content {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(100%, 360px);
  padding: 28px;
  text-align: center;
  background: #111827;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.payment-processing-content p {
  margin: 0;
}

.payment-failure-content h2,
.payment-failure-content p {
  margin: 0;
}

.payment-failure-content button {
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #0b1020;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.payment-spinner {
  width: 42px;
  aspect-ratio: 1;
  border: 4px solid rgba(229, 238, 251, 0.25);
  border-top-color: var(--accent-soft);
  border-radius: 50%;
  animation: payment-spin 0.8s linear infinite;
}

@keyframes payment-spin {
  to {
    transform: rotate(360deg);
  }
}

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.hero {
  text-align: center;
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-soft);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 1;
  margin: 18px 0 16px;
}

.lead {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 1.3rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-action-primary,
.hero-action-secondary {
  margin-top: 0;
}

.hero-action-primary {
  background: rgba(34, 211, 238, 0.2);
  border-color: rgba(34, 211, 238, 0.42);
  font-weight: 700;
}

.hero-action-secondary {
  background: rgba(15, 23, 42, 0.45);
}

.registry-band {
  margin: 0;
}

.card {
  backdrop-filter: blur(14px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
}

.layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
  gap: 24px;
  margin-bottom: 24px;
}

.card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.card-accent {
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.22), rgba(15, 23, 42, 0.92)),
    var(--panel-strong);
}

.feature-list {
  padding-left: 20px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.feature-list li {
  margin-bottom: 2px;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.fine-print {
  color: var(--muted);
}

.section-heading {
  margin: 24px 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-number {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
}

.step div {
  display: grid;
  gap: 2px;
}

.step-title {
  font-weight: 600;
  font-size: 0.98rem;
}

.step-copy {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.trust-badge {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.testimonial {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-soft);
  border-radius: 12px;
}

.testimonial blockquote {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.5;
  font-style: italic;
}

.testimonial figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
  padding: 20px 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.highlight-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-soft);
}

.highlight-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.feature-list {
  margin-bottom: 0;
}

.plan-disclaimer {
  margin-top: auto;
  margin-bottom: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(251, 191, 36, 0.35);
}

.plan-disclaimer h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warning);
  margin-bottom: 6px;
}

.plan-disclaimer p {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  margin-bottom: 6px;
}

.plan-disclaimer p:last-child {
  margin-bottom: 0;
}

.certificate-browser {
  margin: 20px 0 24px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.08), rgba(15, 23, 42, 0.62) 42%),
    rgba(15, 23, 42, 0.52);
}

.registry-band .certificate-browser {
  margin: 0;
  padding: 20px;
}

.browser-intro h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.browser-kicker {
  margin: 0 0 8px;
  color: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.browser-copy {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.browser-actions {
  margin-bottom: 12px;
}

.browser-primary-link {
  width: 100%;
  margin-top: 0;
  text-align: center;
  font-weight: 700;
  background: rgba(124, 58, 237, 0.22);
}

.browser-quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.browser-quick-links a {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.5);
}

.browser-quick-links a:hover {
  border-color: rgba(34, 211, 238, 0.45);
}

.browser-form {
  display: grid;
  gap: 8px;
}

.browser-form label {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
}

.browser-form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.browser-form-row button {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 16px;
  background: rgba(124, 58, 237, 0.2);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.price-tag {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-soft);
}

.price-period {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  transform: translateY(0.52rem);
}

.payment-form {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.payment-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.payment-form input,
.payment-form select,
.payment-form button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font: inherit;
}

.payment-form input,
.payment-form select {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox input {
  width: auto;
  margin-top: 4px;
}

.paypal-panel,
.wallet-panel {
  padding: 14px 14px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
}

#checkout {
  padding: 24px;
}

#checkout h2 {
  margin-bottom: 12px;
}

.paypal-hint,
.wallet-hint {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.paypal-container {
  min-height: 55px;
  transition: opacity 0.2s ease;
}

.paypal-container.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  filter: grayscale(1);
}

.wallet-panel.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  filter: grayscale(1);
}

.wallet-placeholder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wallet-placeholder[hidden] {
  display: none;
}

.wallet-placeholder-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
}

.wallet-placeholder-apple {
  background: #050505;
  color: #ffffff;
}

.wallet-placeholder-google {
  background: #ffffff;
  color: #202124;
}

.paypal-container:not(.is-disabled) ~ .paypal-hint {
  display: none;
}

.result-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.result-card {
  max-width: 620px;
  text-align: center;
}

.result-link {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 8px;
  padding: 14px 16px;
}

.payment-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.payment-status:empty {
  display: none;
}

.payment-status.is-success {
  color: #4ade80;
}

.payment-status.is-error {
  color: #f87171;
}

.verify-card {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.verify-state {
  color: var(--muted);
  font-size: 0.95rem;
}

.verify-state.is-invalid {
  color: #f87171;
  font-weight: 600;
}

.verify-nav {
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: end;
}

.verify-nav-buttons {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.verify-nav-buttons > button {
  min-width: 92px;
}

.verify-lookup-form {
  justify-self: end;
  width: min(100%, 300px);
}

.verify-nav button,
.verify-lookup-form button,
.verify-owner-form button {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.verify-nav button:disabled,
.verify-owner-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.verify-lookup-form {
  display: grid;
  gap: 6px;
}

.verify-lookup-form label {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.verify-lookup-form > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.verify-lookup-form input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  font: inherit;
}

.verify-result {
  display: grid;
  gap: 16px;
  justify-items: center;
  width: 100%;
}

.verify-icon {
  width: min(280px, 70vw);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.25);
}

.verify-badge {
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
}

.verify-badge.is-valid {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.08);
}

.verify-badge.is-void {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
}

.verify-details {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin: 0;
  text-align: left;
}

.verify-details > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.verify-details dt {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.verify-details dd {
  margin: 0;
  font-weight: 600;
}

.verify-owner-toggle {
  appearance: none;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.55);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.verify-owner-form {
  width: 100%;
  max-width: 420px;
  display: grid;
  gap: 10px;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
}

#ownership-key-panel {
  margin: 0;
}

.ownership-panels {
  width: 100%;
  max-width: 900px;
  margin: 6px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.ownership-panels > .verify-owner-form {
  width: 100%;
  max-width: none;
  height: 100%;
}

.ownership-panels[hidden] {
  display: none !important;
}

#ownership-setup-form {
  display: grid;
  gap: 10px;
}

.verify-owner-form[hidden] {
  display: none !important;
}

.verify-owner-form h2 {
  margin: 0;
  font-size: 1rem;
}

.verify-owner-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.verify-owner-form label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
}

.verify-owner-form input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  font: inherit;
}

.verify-password-field {
  position: relative;
}

.verify-password-field input {
  min-width: 0;
  padding-right: 44px;
}

.verify-password-toggle {
  appearance: none;
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.verify-password-toggle:hover {
  color: #22d3ee;
}

.verify-password-toggle:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.65);
  outline-offset: 2px;
}

.eye-glyph {
  font-size: 17px;
  line-height: 1;
  display: inline-block;
}

.verify-password-toggle[aria-pressed="false"]::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform: rotate(-32deg);
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.verify-owner-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.82rem;
  color: var(--muted);
}

.verify-owner-status.is-valid {
  color: #4ade80;
}

.verify-owner-status.is-invalid {
  color: #f87171;
}

.verify-mono {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.82rem;
  word-break: break-all;
}

.verify-screenshot-btn {
  appearance: none;
  width: 100%;
  max-width: 420px;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
}

.verify-screenshot-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.verify-screenshot-disclaimer {
  width: 100%;
  max-width: 420px;
  margin: -4px 0 0;
  font-size: 0.8rem;
  color: var(--warning);
  text-align: center;
}

.verify-screenshot-status {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.verify-screenshot-status:empty {
  display: none;
}

.verify-screenshot-status.is-invalid {
  color: #f87171;
}

.certificate-reward {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 20px 0 8px;
}

.certificate-reward img {
  width: min(240px, 60vw);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.25);
}

@media (max-width: 720px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-action-primary,
  .hero-action-secondary {
    width: 100%;
    text-align: center;
  }

  .browser-quick-links {
    grid-template-columns: 1fr;
  }

  .browser-form-row {
    grid-template-columns: 1fr;
  }

  .verify-nav {
    grid-template-columns: 1fr;
  }

  .ownership-panels {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .verify-nav-buttons {
    width: 100%;
  }

  .verify-nav-buttons > button {
    width: 100%;
  }

  .verify-nav-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .verify-lookup-form {
    justify-self: stretch;
    width: 100%;
  }
}
