/* Certificate verification: a calm, public page. Cyan to blue like the rest of the site; green only for "verified". */
.cv {
    --cv-ink: #0f1b2d; --cv-body: #46566b; --cv-muted: #6b7c91; --cv-line: rgba(20, 90, 140, .16);
    --cv-card: #fff; --cv-soft: rgba(8, 145, 178, .10);
    --cv-a: #0891b2; --cv-b: #2563eb; --cv-a-ink: #0b6f8c;
    --cv-ok: #17b26a; --cv-ok-ink: #0c7a47; --cv-ok-soft: rgba(23, 178, 106, .12);
    --cv-err: #c4352f;
    --cv-lift: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 2px 4px rgba(15, 60, 100, .08), 0 22px 36px -26px rgba(15, 80, 130, .45);
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    color: var(--cv-body);
    padding-bottom: clamp(40px, 6vw, 72px);
}
[data-bs-theme="dark"] .cv {
    --cv-ink: #eaf2fb; --cv-body: #b3c2d4; --cv-muted: #8a9db3; --cv-line: rgba(120, 190, 235, .2);
    --cv-card: #0e2236; --cv-soft: rgba(34, 211, 238, .12);
    --cv-a: #22d3ee; --cv-b: #60a5fa; --cv-a-ink: #67e8f9;
    --cv-ok: #34d399; --cv-ok-ink: #6ee7b7; --cv-ok-soft: rgba(52, 211, 153, .14);
    --cv-err: #ff8a84;
    --cv-lift: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 22px 36px -24px rgba(0, 0, 0, .7);
}
.cv *, .cv *::before, .cv *::after { box-sizing: border-box; }
.cv-shell { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* hero */
.cv-hero { position: relative; padding: clamp(40px, 7vw, 84px) 0 clamp(48px, 6vw, 72px); text-align: center; background: radial-gradient(900px 340px at 50% -10%, var(--cv-soft), transparent 70%); border-bottom: 1px solid var(--cv-line); }
.cv-hero .cv-shell { max-width: 760px; }
.cv-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--cv-line); background: var(--cv-card); color: var(--cv-a-ink); font-size: .8125rem; font-weight: 700; }
.cv-badge i { color: var(--cv-ok); font-size: 1rem; }
.cv h1 { margin: 18px 0 12px; font-size: clamp(1.75rem, 4.4vw, 2.75rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--cv-ink); }
.cv h1 em { font-style: normal; background: linear-gradient(100deg, var(--cv-a), var(--cv-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cv-lede { margin: 0 auto 28px; max-width: 56ch; font-size: 1.0625rem; line-height: 1.6; }

/* form */
.cv-form { max-width: 640px; margin-inline: auto; text-align: left; }
.cv-form label { display: block; margin: 0 0 8px; font-size: .875rem; font-weight: 700; color: var(--cv-ink); }
.cv-field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 16px; border: 1px solid var(--cv-line); background: var(--cv-card); box-shadow: var(--cv-lift); transition: border-color .2s, box-shadow .2s; }
.cv-field:focus-within { border-color: var(--cv-a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cv-a) 22%, transparent), var(--cv-lift); }
.cv-field > i { flex: none; font-size: 1.2rem; color: var(--cv-a); }
.cv-field input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--cv-ink); font: inherit; font-size: 1rem; letter-spacing: .02em; }
.cv-field input::placeholder { color: var(--cv-muted); opacity: 1; letter-spacing: 0; }
.cv-field input.input-validation-error { color: var(--cv-err); }
.cv-error { min-height: 1.4em; margin: 10px 4px 0; font-size: .875rem; font-weight: 600; color: var(--cv-err); }

/* buttons */
.cv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #0891b2, #2563eb); color: #fff; font: inherit; font-size: .9375rem; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 14px 22px -14px #0891b2; transition: transform .2s cubic-bezier(.2, .7, .2, 1), filter .2s; }
.cv-btn:hover { transform: translateY(-2px); filter: brightness(1.06); color: #fff; }
.cv-btn:active { transform: scale(.985); }
.cv-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--cv-b) 55%, transparent); outline-offset: 2px; }
.cv-btn[hidden] { display: none; }
.cv-btn[disabled] { cursor: progress; transform: none; filter: none; }
.cv-btn--ghost { background: var(--cv-card); color: var(--cv-a-ink); border: 1px solid var(--cv-line); box-shadow: none; }
.cv-btn--ghost:hover { color: var(--cv-a-ink); border-color: var(--cv-a); }
.cv-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: cv-rot .8s linear infinite; }
@keyframes cv-rot { to { transform: rotate(360deg); } }

/* result */
.cv-result { margin-top: clamp(24px, 4vw, 40px); }
.cv-ok { max-width: 760px; margin-inline: auto; padding: clamp(20px, 3vw, 32px); border-radius: 20px; border: 1px solid color-mix(in srgb, var(--cv-ok) 45%, var(--cv-line)); background: var(--cv-card); box-shadow: var(--cv-lift); animation: cv-in .45s cubic-bezier(.2, .7, .2, 1); }
.cv-ok[hidden] { display: none; }
@keyframes cv-in { from { opacity: 0; transform: translateY(10px); } }
.cv-ok__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--cv-line); }
.cv-ok__tick { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cv-ok-soft); color: var(--cv-ok-ink); font-size: 1.5rem; }
.cv-ok h2 { margin: 0 0 2px; font-size: 1.25rem; font-weight: 800; color: var(--cv-ink); }
.cv-ok p { margin: 0; font-size: .9375rem; }
.cv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 20px 0 24px; }
.cv-facts dt { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cv-muted); }
.cv-facts dd { margin: 0; font-size: 1.0625rem; font-weight: 700; color: var(--cv-ink); overflow-wrap: anywhere; }
.cv-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9375rem !important; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* why you can trust it */
.cv-points { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-top: clamp(32px, 5vw, 56px); max-width: 960px; }
.cv-points > div { padding: 20px; border-radius: 16px; border: 1px solid var(--cv-line); background: var(--cv-card); }
.cv-points i { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 12px; background: var(--cv-soft); color: var(--cv-a); font-size: 1.2rem; }
.cv-points h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 800; color: var(--cv-ink); }
.cv-points p { margin: 0; font-size: .9375rem; line-height: 1.55; }
.cv-report { margin: 28px 16px 0; text-align: center; font-size: .9375rem; }
.cv-report a { color: var(--cv-a-ink); font-weight: 700; }

@media (min-width: 768px) { .cv-points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
    .cv-field { flex-wrap: wrap; padding: 12px; }
    .cv-field > i { display: none; }
    .cv-field input { flex: 1 1 100%; height: 44px; }
    .cv-field .cv-btn { width: 100%; }
    .cv-facts { grid-template-columns: minmax(0, 1fr); }
    .cv-actions .cv-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cv-ok { animation: none; } .cv-btn { transition: none; } .cv-spin { animation-duration: 2s; } }
