:root {
  --paper: #f6f1e7;
  --paper-deep: #efe6d8;
  --ink: #1b1713;
  --ink-soft: rgba(27, 23, 19, 0.75);
  --seal: #c43b2f;
  --seal-dark: #8f2a21;
  --brass: #d1a04f;
  --teal: #2f6f67;
  --shadow: rgba(27, 23, 19, 0.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, #fff6e9 0%, transparent 45%),
    radial-gradient(circle at 80% 0%, #f0dfc8 0%, transparent 40%),
    linear-gradient(135deg, var(--paper) 0%, var(--paper-deep) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(27, 23, 19, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: -20% auto auto -10%;
  width: 460px;
  height: 460px;
  border: 2px dashed rgba(196, 59, 47, 0.25);
  border-radius: 50%;
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 0;
}

.environment-banner {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  padding: 10px 14px;
  background: #b00020;
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 2px solid #7a0016;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 6vw 0;
  font-size: 0.95rem;
}

.brand {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 18px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-color: var(--seal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  gap: 48px;
  padding: 6vh 6vw 10vh;
  align-items: start;
}

.hero-copy {
  animation: fadeUp 0.8s ease-out;
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  align-self: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--seal);
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 520px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 10px;
}

.hero-points li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-soft);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 3px rgba(209, 160, 79, 0.25);
}

.trust-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sign-card,
.verify-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 45px var(--shadow);
  border: 1px solid rgba(27, 23, 19, 0.08);
  backdrop-filter: blur(6px);
  animation: fadeUp 0.9s ease-out;
}

.tab-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(27, 23, 19, 0.06);
  border: 1px solid rgba(27, 23, 19, 0.08);
  margin-bottom: 0;
}

.tab {
  background: transparent;
  color: var(--ink-soft);
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.tab.is-active,
.tab[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 16px rgba(27, 23, 19, 0.2);
}

.tab-panel {
  display: grid;
  gap: 18px;
}

.tab-panel[hidden] {
  display: none;
}

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

.sign-action-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  max-width: 280px;
}

#sign-button-top {
  padding: 10px 16px;
  font-size: 0.9rem;
}

#status-top {
  font-size: 0.8rem;
  margin-top: 0;
}

.label {
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

textarea {
  resize: vertical;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(27, 23, 19, 0.2);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.98rem;
  background: #fffdf9;
  color: var(--ink);
  min-height: 140px;
}

input[type="text"],
input[type="url"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(27, 23, 19, 0.2);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.98rem;
  background: #fffdf9;
  color: var(--ink);
}

textarea:focus {
  outline: 2px solid rgba(196, 59, 47, 0.4);
}

input[type="text"]:focus,
input[type="url"]:focus {
  outline: 2px solid rgba(196, 59, 47, 0.4);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.counter {
  font-family: "IBM Plex Mono", "Courier New", monospace;
}

.hint {
  color: var(--teal);
  font-size: 0.85rem;
}

.status-error {
  color: var(--seal);
  font-size: 0.85rem;
  font-weight: 600;
}

.picker {
  border: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 10px;
}

.picker[hidden] {
  display: none;
}

.picker legend {
  font-weight: 600;
  margin-bottom: 8px;
}

.verification-panel {
  display: grid;
  gap: 16px;
  padding: 0;
  background: transparent;
}

.verification-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.verification-note {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.strength-meter {
  padding: 8px 0 0;
  display: grid;
  gap: 10px;
}

.strength-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.strength-subtitle {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.strength-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.strength-tier {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1rem;
  color: var(--seal-dark);
}

.strength-value {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.strength-bar {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(27, 23, 19, 0.08);
  overflow: hidden;
}

.strength-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(27, 23, 19, 0.18) 0,
    rgba(27, 23, 19, 0.18) 2px,
    transparent 2px,
    transparent 25%
  );
  opacity: 0.2;
  pointer-events: none;
}

.strength-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f6f67 0%, #d1a04f 55%, #c43b2f 100%);
  box-shadow: 0 6px 14px rgba(196, 59, 47, 0.28);
  transition: width 0.35s ease;
}

.strength-levels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-top: -2px;
}

.strength-signals {
  display: grid;
  gap: 8px;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(27, 23, 19, 0.12);
  background: rgba(27, 23, 19, 0.06);
  color: var(--ink-soft);
}

.signal-pill[role="button"],
.badge[role="button"] {
  cursor: pointer;
}

.signal-pill[role="button"]:focus-visible,
.badge[role="button"]:focus-visible {
  outline: 2px solid rgba(196, 59, 47, 0.35);
  outline-offset: 2px;
}

.signal-pill.is-identity {
  border-color: rgba(47, 111, 103, 0.25);
}

.signal-pill.is-identity.is-active {
  border-color: rgba(47, 111, 103, 0.45);
  background: rgba(47, 111, 103, 0.12);
  color: var(--teal);
}

.signal-pill.is-commitment {
  border-color: rgba(209, 160, 79, 0.35);
}

.signal-pill.is-commitment.is-active {
  border-color: rgba(209, 160, 79, 0.5);
  background: rgba(209, 160, 79, 0.16);
  color: #8b5a1f;
}

.badge-identity {
  background: rgba(47, 111, 103, 0.12);
  border: 1px solid rgba(47, 111, 103, 0.35);
  color: var(--teal);
}

.badge-commitment {
  background: rgba(209, 160, 79, 0.16);
  border: 1px solid rgba(209, 160, 79, 0.45);
  color: #8b5a1f;
}

.badge-neutral {
  background: rgba(27, 23, 19, 0.08);
  border: 1px solid rgba(27, 23, 19, 0.18);
  color: var(--ink-soft);
}

.method-group {
  display: grid;
  gap: 12px;
}

.method-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.method-group-title {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.method-card[data-method="turnstile"],
.method-card[data-method="oauth"] {
  grid-column: 1 / -1;
}

.method-card {
  border: 1px solid rgba(27, 23, 19, 0.12);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.method-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(27, 23, 19, 0.12);
}

.method-card:focus {
  outline: 2px solid rgba(196, 59, 47, 0.35);
  outline-offset: 2px;
}

.method-card.is-active {
  border-color: rgba(196, 59, 47, 0.55);
  box-shadow: 0 12px 20px rgba(196, 59, 47, 0.16);
}

.method-card.is-locked {
  cursor: default;
}

.method-card.is-disabled {
  filter: grayscale(0.5);
  cursor: not-allowed;
}

.method-card.is-disabled.is-active {
  border-style: dashed;
  border-color: rgba(196, 59, 47, 0.5);
}

.method-card.is-disabled > * {
  opacity: 0.55;
}

.method-card.is-disabled.is-active > * {
  opacity: 0.7;
}

.method-card.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

.oauth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oauth-actions .oauth-button {
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.oauth-disclosure {
  display: grid;
  gap: 6px;
  padding-top: 4px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.check-row input {
  margin-top: 2px;
}

.oauth-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(47, 111, 103, 0.08);
  border: 1px solid rgba(47, 111, 103, 0.2);
}

.oauth-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(27, 23, 19, 0.12);
}

.oauth-provider {
  font-weight: 600;
}

.oauth-email {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.oauth-status {
  font-size: 0.82rem;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--seal);
  cursor: pointer;
  text-align: left;
}

.link-button:hover {
  text-decoration: underline;
}

.oauth-clear {
  font-size: 0.8rem;
}

.method-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.method-card-top-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.method-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.method-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-select-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.payment-select {
  border: 1px solid rgba(27, 23, 19, 0.18);
  border-radius: 10px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.8rem;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.payment-select:focus {
  outline: 2px solid rgba(196, 59, 47, 0.35);
  outline-offset: 1px;
}

.method-points {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(27, 23, 19, 0.14);
  background: rgba(27, 23, 19, 0.06);
  color: var(--ink-soft);
}

.method-points.is-identity {
  border-color: rgba(47, 111, 103, 0.35);
  background: rgba(47, 111, 103, 0.12);
  color: var(--teal);
}

.method-points.is-commitment {
  border-color: rgba(209, 160, 79, 0.4);
  background: rgba(209, 160, 79, 0.12);
  color: #8b5a1f;
}

.method-points.is-top {
  margin-left: 2px;
}

.method-tag {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(27, 23, 19, 0.14);
  background: rgba(27, 23, 19, 0.06);
  color: var(--ink-soft);
}

.method-tag.is-identity {
  border-color: rgba(47, 111, 103, 0.35);
  background: rgba(47, 111, 103, 0.12);
  color: var(--teal);
}

.method-tag.is-commitment {
  border-color: rgba(209, 160, 79, 0.4);
  background: rgba(209, 160, 79, 0.12);
  color: #8b5a1f;
}

.method-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.method-actions {
  margin-top: 8px;
}

button.payment-trigger-button {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1;
  box-shadow: none;
}

button.payment-trigger-button.is-disabled {
  background: rgba(27, 23, 19, 0.55);
  color: #fff;
  cursor: not-allowed;
}

button.payment-trigger-button.is-paid {
  background: var(--teal);
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
}

.method-card.is-paid {
  border-color: rgba(47, 111, 103, 0.55);
  box-shadow: 0 10px 18px rgba(47, 111, 103, 0.12);
}

.method-chip {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  background: rgba(47, 111, 103, 0.12);
  color: var(--teal);
  border: 1px solid rgba(47, 111, 103, 0.25);
}

.method-chip.is-muted {
  background: rgba(27, 23, 19, 0.08);
  color: var(--ink-soft);
  border-color: rgba(27, 23, 19, 0.14);
}

.verification-hint {
  margin: 0;
}

.method-card[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: min(240px, 80vw);
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(27, 23, 19, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.75rem;
  line-height: 1.35;
  box-shadow: 0 12px 20px rgba(27, 23, 19, 0.18);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 3;
}

.method-card:hover::after,
.method-card:focus::after {
  opacity: 1;
  transform: translateY(0);
}

.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(27, 23, 19, 0.12);
  background: #fff;
  cursor: pointer;
}

.pill input {
  accent-color: var(--seal);
}

.warning {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(196, 59, 47, 0.08);
  color: var(--seal-dark);
  font-size: 0.9rem;
}

.turnstile-inline {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-width: 320px;
  width: 100%;
}

.turnstile-slot {
  min-height: 65px;
}

button {
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
}

.button-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.material-symbols-rounded.button-icon {
  font-size: 1.1em;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

button.primary {
  background: var(--seal);
  color: #fff;
  box-shadow: 0 12px 18px rgba(196, 59, 47, 0.3);
}

#sign-button {
  padding: 14px 22px;
  font-size: 1rem;
  margin-top: 12px;
}

button.secondary {
  background: var(--ink);
  color: #fff;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.status {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-stamp {
  background: rgba(196, 59, 47, 0.08);
  border: 1px solid rgba(196, 59, 47, 0.35);
  color: var(--seal-dark);
  transform: rotate(-1.5deg);
}

.receipt {
  margin-top: 24px;
  border-radius: 16px;
  border: 2px dashed rgba(27, 23, 19, 0.2);
  padding: 18px;
  background: #fffaf3;
}

.receipt-header {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.receipt-copy {
  border-radius: 14px;
  border: 1px solid rgba(27, 23, 19, 0.14);
  background: #fffdf9;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.receipt-copy-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.receipt-body {
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: transparent;
  margin: 0;
}

.receipt-copy .receipt-body {
  color: var(--ink);
}

.receipt-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.verify {
  padding: 4vh 6vw 8vh;
}

.verify-card {
  max-width: 840px;
  margin: 0 auto;
}

.verify-head {
  margin-bottom: 16px;
}

.verify-lookup {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(27, 23, 19, 0.18);
  background: rgba(255, 250, 243, 0.7);
}

.verify-lookup[hidden] {
  display: none;
}

.verify-empty {
  display: grid;
  gap: 6px;
}

.verify-empty-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.verify-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.verify-meta {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
  margin-top: 16px;
}

.verify-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(47, 111, 103, 0.08);
  border: 1px solid rgba(47, 111, 103, 0.2);
  color: var(--ink);
}

.verify-identity-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(27, 23, 19, 0.15);
}

.verify-identity-meta {
  display: grid;
  gap: 2px;
}

.verify-identity-provider {
  font-weight: 600;
}

.verify-identity-email {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.verify-meta-inline {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.verify-meta-inline div {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  color: var(--ink-soft);
}

.verify-hosted {
  padding: 16px;
  border-radius: 16px;
  border: 2px solid rgba(47, 111, 103, 0.25);
  background: rgba(47, 111, 103, 0.06);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 103, 0.08);
}

.verify-hosted .receipt-body {
  color: var(--ink);
  font-size: 0.95rem;
}

.verify-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.verify-status[hidden] {
  display: none;
}

.verify-summary {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.verify-summary[hidden] {
  display: none;
}

.verify-summary-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(27, 23, 19, 0.12);
  background: #fff;
  box-shadow: 0 12px 22px rgba(27, 23, 19, 0.08);
  display: grid;
  gap: 12px;
}

.verify-strength-card {
  border-color: rgba(47, 111, 103, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(47, 111, 103, 0.08));
}

.verify-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.verify-summary-copy {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.verify-strength-badge {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(196, 59, 47, 0.22);
  background: rgba(255, 255, 255, 0.7);
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1rem;
  color: var(--seal-dark);
  white-space: nowrap;
}

.verify-strength-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.verify-strength-step {
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(27, 23, 19, 0.12);
  background: rgba(27, 23, 19, 0.06);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-align: center;
}

.verify-strength-step.is-active[data-tier="baseline"] {
  border-color: rgba(47, 111, 103, 0.45);
  background: rgba(47, 111, 103, 0.16);
  color: var(--teal);
  box-shadow: 0 10px 16px rgba(47, 111, 103, 0.18);
}

.verify-strength-step.is-active[data-tier="strong"] {
  border-color: rgba(209, 160, 79, 0.5);
  background: rgba(209, 160, 79, 0.2);
  color: #8b5a1f;
  box-shadow: 0 10px 16px rgba(209, 160, 79, 0.2);
}

.verify-strength-step.is-active[data-tier="maximum"] {
  border-color: rgba(196, 59, 47, 0.5);
  background: rgba(196, 59, 47, 0.16);
  color: var(--seal-dark);
  box-shadow: 0 10px 16px rgba(196, 59, 47, 0.2);
}

.verify-strength-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.verify-signals {
  display: grid;
  gap: 10px;
}

.verify-signal {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(27, 23, 19, 0.12);
  background: rgba(255, 255, 255, 0.85);
  display: grid;
  gap: 6px;
}

.verify-signal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.verify-signal-label {
  font-weight: 600;
  font-size: 0.92rem;
}

.verify-signal-meta {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.verify-signal-tag {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(27, 23, 19, 0.16);
  background: rgba(27, 23, 19, 0.06);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.verify-signal-tag.is-identity {
  border-color: rgba(47, 111, 103, 0.35);
  background: rgba(47, 111, 103, 0.12);
  color: var(--teal);
}

.verify-signal-tag.is-commitment {
  border-color: rgba(209, 160, 79, 0.45);
  background: rgba(209, 160, 79, 0.16);
  color: #8b5a1f;
}

.verify-signal-empty {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(46, 125, 50, 0.12);
  color: #1e5b2b;
  font-weight: 600;
}

.checkmark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.tooltip-button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(27, 23, 19, 0.2);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  position: relative;
}

.tooltip-button::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(27, 23, 19, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.35;
  box-shadow: 0 12px 20px rgba(27, 23, 19, 0.18);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.tooltip-button:hover::after,
.tooltip-button:focus::after {
  opacity: 1;
  transform: translateY(0);
}

@supports selector(:focus-visible) {
  .method-card:focus {
    outline: none;
  }

  .method-card:focus-visible {
    outline: 2px solid rgba(196, 59, 47, 0.35);
    outline-offset: 2px;
  }

  .method-card:focus::after {
    opacity: 0;
    transform: translateY(4px);
  }

  .method-card:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
  }

  .tooltip-button:focus::after {
    opacity: 0;
    transform: translateY(4px);
  }

  .tooltip-button:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
  }
}

.statement {
  margin-top: 18px;
}

.statement summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 10px;
}

.mono {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.85rem;
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--seal-dark);
  text-decoration: none;
  font-weight: 600;
}

.info {
  padding: 6vh 6vw;
}

.info.alt {
  background: rgba(47, 111, 103, 0.08);
  border-top: 1px solid rgba(27, 23, 19, 0.08);
  border-bottom: 1px solid rgba(27, 23, 19, 0.08);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.info-card {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(27, 23, 19, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

.footer {
  padding: 30px 6vw 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    position: static;
    top: auto;
    transform: none;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav a {
    margin-left: 0;
    margin-right: 14px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 5vh 6vw;
  }

  .sign-card,
  .verify-card {
    padding: 20px;
  }

  .meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}

/* Signature Success Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 23, 19, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  background: linear-gradient(145deg, #fffdf9 0%, #f8f3ea 100%);
  border-radius: 24px;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 
    0 24px 48px rgba(27, 23, 19, 0.25),
    0 0 0 1px rgba(27, 23, 19, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: modalSlideUp 0.3s ease-out;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(27, 23, 19, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.modal-close:hover {
  background: #fff;
  color: var(--ink);
  border-color: rgba(27, 23, 19, 0.2);
}

.modal-close .material-symbols-rounded {
  font-size: 20px;
}

.modal-stamp {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--seal) 0%, var(--seal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 12px 24px rgba(196, 59, 47, 0.35),
    0 0 0 4px rgba(196, 59, 47, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  animation: stampPop 0.4s ease-out 0.15s both;
}

.modal-stamp-icon {
  font-size: 40px;
  color: #fff;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 48;
}

.modal-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.8rem;
  color: var(--ink);
  margin: 0 0 8px;
}

.modal-subtitle {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 24px;
}

.modal-receipt {
  background: #fff;
  border: 2px dashed rgba(27, 23, 19, 0.18);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.modal-receipt .receipt-body {
  font-size: 0.88rem;
  color: var(--ink);
  max-height: 280px;
  overflow-y: auto;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-actions .primary {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
}

.modal-actions .secondary {
  min-width: 100px;
}

.modal-status {
  margin-top: 16px;
  min-height: 24px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes stampPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .modal {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .modal-stamp {
    width: 64px;
    height: 64px;
  }

  .modal-stamp-icon {
    font-size: 32px;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .primary,
  .modal-actions .secondary {
    max-width: none;
    width: 100%;
  }
}
