/* =========================================================
   H O S Ä E N A — VERIFY PAGE
   verify.css — full replacement
   May 2026

   Three states, one document system.

   1. .ho-verify__result--token   Certificate — physical tag
   2. .ho-verify__result--code    Reference — code lookup
   3. .ho-verify__intro           Entry form

   All three share the same .ho-verify document shell:
   background #f3eee5, gold border, corner ornaments,
   inset border, Meskel cross watermark, seal strip.
   Differentiated by weight, not by structure.

   New font: Monsieur La Doulaise — signature only.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Monsieur+La+Doulaise&display=swap');

/* ──────────────────────────────────────────────────────────
   DOCUMENT SHELL — .ho-verify
   Shared across all three states.
────────────────────────────────────────────────────────── */

.ho-verify {
  --ho-verify-paper: #f3eee5;
  position: relative;
  width: min(100%, 42rem);
  margin: clamp(3rem, 7vw, 5.5rem) auto;
  background: var(--ho-verify-paper);
  border: 1px solid rgba(193, 164, 109, 0.42);
}

/* Top-left corner bracket — ::before */
.ho-verify::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 16px;
  height: 16px;
  border-top: 1px solid rgba(193, 164, 109, 0.65);
  border-left: 1px solid rgba(193, 164, 109, 0.65);
  pointer-events: none;
  z-index: 3;
}

/* Bottom-right corner bracket — ::after */
.ho-verify::after {
  content: "";
  position: absolute;
  bottom: 7px;
  right: 7px;
  width: 16px;
  height: 16px;
  border-bottom: 1px solid rgba(193, 164, 109, 0.65);
  border-right: 1px solid rgba(193, 164, 109, 0.65);
  pointer-events: none;
  z-index: 3;
}

/* ── INSET BORDER ── */
.ho-verify__inset {
  position: absolute;
  inset: 13px;
  border: 0.5px solid rgba(193, 164, 109, 0.18);
  pointer-events: none;
  z-index: 0;
}

/* ── MESKEL CROSS WATERMARK ── */
.ho-verify__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  pointer-events: none;
  z-index: 0;
}

.ho-verify__result--token .ho-verify__watermark { opacity: 0.040; }
.ho-verify__result--code .ho-verify__watermark { opacity: 0.025; }
.ho-verify__result--not-found .ho-verify__watermark { opacity: 0.025; }
.ho-verify__intro .ho-verify__watermark,
.ho-verify > .ho-verify__watermark { opacity: 0.025; }

/* ──────────────────────────────────────────────────────────
   HEADER ZONE
   .ho-verify__intro      — form state
   .ho-verify__confirmed  — result states (token + code)
────────────────────────────────────────────────────────── */

.ho-verify__intro,
.ho-verify__confirmed {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 4.5vw, 3.25rem) clamp(2rem, 5.5vw, 3.75rem) clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid rgba(15, 15, 15, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
  text-align: center;
}

/* Ethiopic eyebrow */
.ho-verify__eth {
  display: block;
  font-family: "Noto Sans Ethiopic", var(--ho-font-body, "Lato"), sans-serif;
  font-weight: 500;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: rgba(15, 15, 15, 0.25);
}

/* Romanisation */
.ho-verify__rom {
  display: block;
  font-family: var(--ho-font-body, "Lato", sans-serif);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(193, 164, 109, 0.60);
}

/* Gold hairline between rom and heading */
.ho-verify__header-rule {
  width: clamp(44px, 6vw, 58px);
  height: 1px;
  background: rgba(193, 164, 109, 0.35);
  margin: 0.25rem auto;
  flex-shrink: 0;
}

/* Headings — weight varies by state */
.ho-verify__heading {
  margin: 0.2rem 0 0;
  font-family: var(--ho-font-display, "Cormorant Garamond", serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

/* Form — full strength */
.ho-verify__intro .ho-verify__heading {
  font-size: clamp(1.65rem, 4vw, 2.85rem);
  color: rgba(15, 15, 15, 0.88);
}

/* Certificate — full strength */
.ho-verify__result--token .ho-verify__heading {
  font-size: clamp(1.65rem, 4vw, 2.85rem);
  color: rgba(15, 15, 15, 0.88);
}

/* Reference — receded */
.ho-verify__result--code .ho-verify__heading {
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  color: rgba(15, 15, 15, 0.68);
}

/* Not-found — receded */
.ho-verify__result--not-found .ho-verify__heading {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  color: rgba(15, 15, 15, 0.65);
}

/* Subtitle — italic Cormorant below heading */
.ho-verify__header-subtitle {
  font-family: var(--ho-font-display, "Cormorant Garamond", serif);
  font-size: clamp(0.78rem, 0.95vw, 0.88rem);
  font-style: italic;
  color: rgba(15, 15, 15, 0.38);
  letter-spacing: 0.03em;
  margin: 0;
}

/* ── VERIFIED BADGE — certificate only ── */
.ho-verify__verified-note {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.18rem;
  font-family: var(--ho-font-body, "Lato", sans-serif);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(43, 107, 74, 0.65);
}

.ho-verify__verified-note::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(43, 107, 74, 0.55);
  flex-shrink: 0;
}

/* ── REFERENCE NOTE ── */
.ho-verify__reference-note {
  margin: 0;
  max-width: 46ch;
  font-family: var(--ho-font-display, "Cormorant Garamond", serif);
  font-size: clamp(0.82rem, 0.98vw, 0.92rem);
  font-style: italic;
  color: rgba(15, 15, 15, 0.38);
  letter-spacing: 0.02em;
  line-height: 1.65;
}

/* ── FORM BODY COPY ── */
.ho-verify__body {
  margin: 0;
  margin-inline: auto;
  justify-self: center;
  font-family: var(--ho-font-display, "Cormorant Garamond", serif);
  font-size: clamp(0.9rem, 1.1vw, 1.02rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.72;
  color: rgba(15, 15, 15, 0.48);
  max-width: 46ch;
  text-align: center;
}

/* ──────────────────────────────────────────────────────────
   RECORD TABLE
   Shared across certificate and reference states.
────────────────────────────────────────────────────────── */

.ho-verify__record {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(2rem, 5.5vw, 3.75rem);
  border-bottom: 1px solid rgba(193, 164, 109, 0.15);
}

.ho-verify__record-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 0.38rem 1.25rem;
  padding-block: 0.62rem;
  border-bottom: 0.5px solid rgba(15, 15, 15, 0.055);
  align-items: baseline;
}

.ho-verify__record-row:first-child { padding-top: 0.2rem; }
.ho-verify__record-row:last-child { border-bottom: none; }

.ho-verify__record-label {
  margin: 0;
  font-family: var(--ho-font-body, "Lato", sans-serif);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(15, 15, 15, 0.3);
}

.ho-verify__record-value {
  margin: 0;
  font-family: var(--ho-font-display, "Cormorant Garamond", serif);
  font-size: clamp(0.88rem, 1.02vw, 0.94rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ho-verify__result--token .ho-verify__record-value { color: rgba(15, 15, 15, 0.72); }
.ho-verify__result--code .ho-verify__record-value { color: rgba(15, 15, 15, 0.56); }

.ho-verify__result--code .ho-verify__record-value:not(.ho-verify__record-value--code),
.ho-verify__result--code .ho-verify__record-value:not(.ho-verify__record-value--code) :is(a, span) {
  font-family: var(--ho-font-body, "Lato", sans-serif);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.ho-verify__record-value--code,
.ho-verify__code-display {
  font-family: var(--ho-font-body, "Lato", sans-serif);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 15, 15, 0.4);
}

.ho-verify__product-link,
.ho-verify__blockchain-link {
  color: inherit;
  text-decoration: none;
}

.ho-verify__product-link:hover,
.ho-verify__blockchain-link:hover {
  color: rgba(15, 15, 15, 0.9);
}

/* ──────────────────────────────────────────────────────────
   CERTIFICATE FOOTER — token state only
   Signature left, QR canvas right.
────────────────────────────────────────────────────────── */

.ho-verify__cert-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(2rem, 5.5vw, 3.75rem);
}

.ho-verify__sig {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ho-verify__signature {
  font-family: "Monsieur La Doulaise", cursive;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 400;
  color: rgba(15, 15, 15, 0.46);
  line-height: 0.88;
  letter-spacing: 0.01em;
  display: block;
}

.ho-verify__sig-line {
  width: 110px;
  height: 0.5px;
  background: rgba(15, 15, 15, 0.12);
  margin: 0.22rem 0;
}

.ho-verify__sig-house {
  font-family: var(--ho-font-body, "Lato", sans-serif);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(15, 15, 15, 0.22);
}

.ho-verify__sig-date {
  font-family: var(--ho-font-display, "Cormorant Garamond", serif);
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(15, 15, 15, 0.3);
  margin-top: 0.1rem;
}

.ho-verify__cert-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
}

.ho-verify__cert-qr-frame {
  width: 68px;
  height: 68px;
  border: 0.5px solid rgba(15, 15, 15, 0.1);
  padding: 3px;
  background: var(--ho-verify-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ho-verify__cert-qr-frame canvas {
  display: block;
  width: 62px !important;
  height: 62px !important;
}

.ho-verify__cert-qr-code {
  font-family: var(--ho-font-body, "Lato", sans-serif);
  font-size: 6.5px;
  letter-spacing: 0.11em;
  color: rgba(15, 15, 15, 0.22);
  white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────
   REFERENCE FOOTER — code state only
────────────────────────────────────────────────────────── */

.ho-verify__ref-footer {
  position: relative;
  z-index: 1;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(2rem, 5.5vw, 3.75rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  column-gap: clamp(1.75rem, 4vw, 3rem);
  row-gap: 0.65rem;
  border-bottom: 1px solid rgba(15, 15, 15, 0.08);
}

.ho-verify__footnote {
  margin: 0;
  max-width: 100%;
  font-family: var(--ho-font-display, "Cormorant Garamond", serif);
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(15, 15, 15, 0.3);
}

/* ──────────────────────────────────────────────────────────
   FORM FIELDS
────────────────────────────────────────────────────────── */

.ho-verify__form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(2rem, 5.5vw, 3.75rem) clamp(1.25rem, 2.5vw, 1.85rem);
  border-bottom: 1px solid rgba(15, 15, 15, 0.08);
}

.ho-verify__field {
  display: grid;
  gap: 0.45rem;
}

.ho-verify__label {
  font-family: var(--ho-font-body, "Lato", sans-serif);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(15, 15, 15, 0.3);
}

.ho-verify__input {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 0;
  background: var(--ho-verify-paper);
  box-shadow: none;
  font-family: var(--ho-font-body, "Lato", sans-serif);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(15, 15, 15, 0.72);
  transition: border-color 180ms ease, background 180ms ease;
}

.ho-verify__input::placeholder {
  color: rgba(15, 15, 15, 0.22);
  letter-spacing: 0.08em;
}

.ho-verify__input:focus {
  outline: none;
  border-color: rgba(15, 15, 15, 0.3);
  background: var(--ho-verify-paper);
}

.ho-verify__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.15rem;
  padding: 0;
  background: var(--ho-color-nero, #0f0f0f);
  color: var(--ho-color-calacatta, #f7f3ec);
  border: 1px solid var(--ho-color-nero, #0f0f0f);
  border-radius: 0;
  font-family: var(--ho-font-body, "Lato", sans-serif);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background 240ms var(--ho-ease-soft, cubic-bezier(0.25, 1, 0.5, 1)),
              color 240ms var(--ho-ease-soft, cubic-bezier(0.25, 1, 0.5, 1));
}

.ho-verify__submit:hover {
  background: transparent;
  color: var(--ho-color-nero, #0f0f0f);
}

/* ──────────────────────────────────────────────────────────
   NOT-FOUND STATE
────────────────────────────────────────────────────────── */

.ho-verify__result--not-found .ho-verify__body {
  position: relative;
  z-index: 1;
  padding: 0 clamp(2rem, 5.5vw, 3.75rem);
  margin-inline: 0;
  justify-self: stretch;
  text-align: left;
  max-width: 100%;
  font-style: normal;
  color: rgba(15, 15, 15, 0.55);
}

.ho-verify__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(2rem, 5.5vw, 3.75rem);
  border-bottom: 1px solid rgba(15, 15, 15, 0.08);
}

/* ──────────────────────────────────────────────────────────
   SEAL STRIP — all three states
────────────────────────────────────────────────────────── */

.ho-verify__seal {
  position: relative;
  z-index: 1;
  background: var(--ho-verify-paper);
  border-top: 1px solid rgba(15, 15, 15, 0.08);
  padding: 0.65rem clamp(2rem, 5.5vw, 3.75rem) 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ho-verify__seal-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.35rem;
}

.ho-verify__seal-mark {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(193, 164, 109, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ho-verify__seal-mark svg {
  width: 9px;
  height: 9px;
  display: block;
}

.ho-verify__seal-text {
  font-family: var(--ho-font-body, "Lato", sans-serif);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 15, 15, 0.28);
}

.ho-verify__seal-eth {
  font-family: "Noto Sans Ethiopic", var(--ho-font-body, "Lato"), sans-serif;
  font-size: 8px;
  color: rgba(193, 164, 109, 0.45);
}

.ho-verify__seal-url {
  font-family: var(--ho-font-body, "Lato", sans-serif);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(193, 164, 109, 0.65);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(193, 164, 109, 0.3);
  padding-bottom: 1px;
  white-space: nowrap;
}

.ho-verify__seal > .ho-verify__seal-text {
  margin-left: auto;
  font-size: 6.8px;
  letter-spacing: 0.14em;
  color: rgba(193, 164, 109, 0.52);
  white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────
   AGAIN / CONTACT LINKS
────────────────────────────────────────────────────────── */

.ho-verify__again,
.ho-verify__contact {
  display: inline-block;
  font-family: var(--ho-font-body, "Lato", sans-serif);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(15, 15, 15, 0.3);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 0.5px solid rgba(15, 15, 15, 0.1);
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  min-height: unset;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  transition: color 200ms ease, border-color 200ms ease;
  cursor: pointer;
}

.ho-verify__again:hover,
.ho-verify__contact:hover {
  color: rgba(15, 15, 15, 0.62);
  border-color: rgba(15, 15, 15, 0.25);
}

.ho-verify__ref-footer .ho-verify__again {
  justify-self: center;
  align-self: center;
  width: fit-content;
  text-align: center;
  font-size: 7px;
  letter-spacing: 0.18em;
  color: rgba(15, 15, 15, 0.42);
  border-bottom-color: rgba(15, 15, 15, 0.08);
}

.ho-verify__ref-footer .ho-verify__again:hover {
  color: rgba(15, 15, 15, 0.56);
  border-bottom-color: rgba(15, 15, 15, 0.18);
}

.ho-verify__scan-warning {
  position: relative;
  z-index: 1;
  background: rgba(180, 40, 40, 0.05);
  border-left: 2px solid rgba(180, 40, 40, 0.35);
  padding: 0.75rem 1rem;
  margin: 0 clamp(2rem, 5.5vw, 3.75rem);
  font-family: var(--ho-font-display, "Cormorant Garamond", serif);
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(140, 30, 30, 0.75);
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .ho-verify {
    width: 100%;
    margin: clamp(1.5rem, 6vw, 2.5rem) auto;
  }

  .ho-verify__record-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-block: 0.55rem;
  }

  .ho-verify__cert-footer {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .ho-verify__cert-qr {
    display: none;
  }

  .ho-verify__seal {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .ho-verify__ref-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .ho-verify__ref-footer .ho-verify__again {
    justify-self: start;
    text-align: left;
  }

  .ho-verify__actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ho-verify__submit,
  .ho-verify__again,
  .ho-verify__contact,
  .ho-verify__input {
    transition: none;
  }
}
