/* VERIFY (Fabio, 11/11): the entry page of two verticals, in the language of the home cards.
   Each card: a preview of the result on top, then kicker, title, one line, what you upload and what you get, a note, the link.
   The whole card opens the page of that vertical. Radius 16, hover only a thin blue border, motion 300-500 ms, no bounce. */
.vfy .lib2-head { margin-bottom: 4px; }
.vfy .lib2-head p { max-width: 60ch; }
.vfy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.vfy-card { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit;
  border: 1px solid rgba(0, 122, 254, 0.18); background: var(--ts-surface-raised, #fff);
  transition: border-color .35s cubic-bezier(.45, 0, .55, 1); animation: vfy-rise .5s cubic-bezier(.215, .61, .355, 1) both; }
.vfy-card + .vfy-card { animation-delay: 80ms; }
.vfy-card:hover { border-color: rgba(0, 122, 254, 0.45); text-decoration: none; color: inherit; transition-duration: .5s; }
.vfy-card:focus-visible { outline: 2px solid var(--ts-focus-ring, #0068d9); outline-offset: 2px; }
@keyframes vfy-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* preview of the result */
.vfy-prev { display: grid; place-items: center; min-height: 200px; padding: 28px; border-bottom: 1px solid rgba(0, 122, 254, 0.12);
  background: radial-gradient(ellipse 80% 120% at 100% 0%, rgba(0, 122, 254, 0.16) 0%, rgba(0, 122, 254, 0.05) 50%, transparent 100%), #f6faff; }
.vp-card { display: grid; gap: 10px; width: min(340px, 100%); padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(8, 17, 34, 0.08);
  transition: transform .5s cubic-bezier(.215, .61, .355, 1); }
.vfy-card:hover .vp-card { transform: translateY(-2px); }
.vp-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font: 600 14px/20px "DM Sans", sans-serif; }
.vp-head .hv3-ic { width: 18px; height: 18px; color: currentColor; }
.vp-head.is-ok { background: var(--ts-state-success-bg, #e8f7ee); color: var(--ts-state-success, #157f3b); }
.vp-row { display: flex; align-items: center; gap: 8px; padding: 0 4px; font: 400 13px/18px "DM Sans", sans-serif; color: var(--ts-text-secondary); }
.vp-row > span { flex: 1; }
.vp-row code { font: 500 12px/16px "JetBrains Mono", monospace; color: var(--ts-text-muted, #6b7280); }
.vp-ok { width: 16px; height: 16px; flex: 0 0 auto; background: var(--ts-state-success, #157f3b);
  -webkit-mask: url(assets/icons/check.svg) center / contain no-repeat; mask: url(assets/icons/check.svg) center / contain no-repeat; }
.vp-media { display: flex; align-items: center; gap: 12px; }
.vp-media > .hv3-ic { flex: 0 0 auto; width: 44px; height: 44px; padding: 11px; box-sizing: border-box; border-radius: 8px; color: #fff;
  background-color: #0a2a5c; }
.vp-media b { display: block; font: 600 13px/18px "DM Sans", sans-serif; color: var(--ts-text-primary); }
.vp-media small { font: 400 12px/16px "DM Sans", sans-serif; color: var(--ts-text-muted, #6b7280); }
.vp-meter { display: grid; gap: 8px; }
.vp-meter-l { display: flex; justify-content: space-between; font: 400 13px/18px "DM Sans", sans-serif; color: var(--ts-text-secondary); }
.vp-meter-l b { color: var(--ts-state-success, #157f3b); font-weight: 600; }
.vp-bar { height: 8px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.vp-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #34c27a, #157f3b); }

/* text */
.vfy-body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 24px; }
.vfy-kicker { font: 600 12px/16px "DM Sans", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ts-text-link, #0068d9); }
.vfy-title { margin-top: 8px; font: 700 24px/30px Raleway, sans-serif; letter-spacing: -0.01em; color: var(--ts-text-primary); }
.vfy-desc { margin-top: 8px; font: 400 15px/22px "DM Sans", sans-serif; color: var(--ts-text-secondary); }
.vfy-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ts-border-default, #e2e8ee); }
.vfy-facts > span { display: flex; flex-direction: column; gap: 4px; font: 500 14px/20px "DM Sans", sans-serif; color: var(--ts-text-primary); }
.vfy-facts small { font: 500 12px/16px "DM Sans", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ts-text-muted, #6b7280); }
.vfy-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font: 400 13px/18px "DM Sans", sans-serif; color: var(--ts-text-secondary); }
.vfy-note .hv3-ic { width: 16px; height: 16px; color: #007afe; flex: 0 0 auto; }
.vfy-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px; font: 600 15px/20px "DM Sans", sans-serif; color: var(--ts-text-link, #0068d9); }
.vfy-go .hv3-ic { width: 16px; height: 16px; color: currentColor; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.vfy-card:hover .vfy-go .hv3-ic { transform: translateX(3px); }
.vfy-foot { margin: 24px 0 0; font: 400 13px/18px "DM Sans", sans-serif; color: var(--ts-text-muted, #6b7280); }

.i-verify { --m: url(assets/icons/shield-outlined.svg); }
.i-deepfake { --m: url(assets/icons/user-ai-feature.svg); }
.i-upload { --m: url(assets/icons/export.svg); }
.i-lock { --m: url(assets/icons/eye-close.svg); }
.i-info { --m: url(assets/icons/question.svg); }

/* upload zone, used by the Deepfake detection page */
.vfy-drop { position: relative; display: flex; align-items: center; gap: 14px; min-height: 120px; margin-top: 24px; padding: 20px; border-radius: 16px;
  border: 1px dashed rgba(0, 122, 254, 0.35); background: rgba(255, 255, 255, 0.72); cursor: pointer;
  transition: border-color .35s cubic-bezier(.45, 0, .55, 1), background-color .35s cubic-bezier(.45, 0, .55, 1); }
.vfy-drop:hover, .vfy-drop.is-over { border-color: #007afe; background: #fff; transition-duration: .5s; }
.vfy-drop:focus-within { outline: 2px solid var(--ts-focus-ring, #0068d9); outline-offset: 2px; }
.vfy-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vfy-drop.has-file .vfy-file { pointer-events: none; }
.vfy-drop-ic { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 999px; background: #eef5ff; }
.vfy-drop-ic .hv3-ic { width: 20px; height: 20px; color: #007afe; }
.vfy-drop-t { display: flex; flex-direction: column; gap: 2px; }
.vfy-drop-t[hidden] { display: none; }
.vfy-drop-t b { font: 600 15px/20px "DM Sans", sans-serif; color: var(--ts-text-primary); }
.vfy-drop-t span { font: 400 14px/20px "DM Sans", sans-serif; color: var(--ts-text-secondary); }
.vfy-drop-t u { color: var(--ts-text-link, #0068d9); text-decoration: none; font-weight: 600; }
.vfy-picked { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; font: 600 14px/20px "DM Sans", sans-serif; color: var(--ts-text-primary); }
.vfy-picked[hidden] { display: none; }
.vfy-picked .hv3-ic { width: 18px; height: 18px; color: #007afe; flex: 0 0 auto; }
.vfy-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vfy-clear { position: relative; z-index: 1; margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; font-size: 20px; line-height: 1; color: var(--ts-text-secondary); cursor: pointer; }
.vfy-clear:hover { background: #eef5ff; }

.vfy-btn { align-self: flex-start; min-height: 44px; margin-top: 16px; padding: 0 24px; border: 0; border-radius: 8px; background: var(--ts-interactive-primary, #007afe); color: #fff;
  font: 600 15px/20px "DM Sans", sans-serif; cursor: pointer; transition: background-color .35s cubic-bezier(.45, 0, .55, 1), opacity .35s; }
.vfy-btn:hover:not(:disabled) { background: var(--ts-interactive-primary-hover, #0068d9); transition-duration: .5s; }
.vfy-btn:disabled { opacity: .4; cursor: default; }
.vfy-btn:focus-visible { outline: 2px solid var(--ts-focus-ring, #0068d9); outline-offset: 2px; }
.i-upload { --m: url(assets/icons/export.svg); }
.i-verify { --m: url(assets/icons/shield-outlined.svg); }
.i-deepfake { --m: url(assets/icons/user-ai-feature.svg); }


@media (max-width: 1023px) { .vfy-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) {
  .vfy-prev { min-height: 160px; padding: 20px 16px; }
  .vfy-body { padding: 20px; }
  .vfy-title { font-size: 22px; line-height: 28px; }
  .vfy-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .vfy-drop { min-height: 96px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .vfy-card, .vp-card { animation: none; transition: none; } }

/* Icons used by the deepfake detection page (its layout lives in deepfake.css) */
.i-back { --m: url(assets/icons/arrow-left.svg); }
.i-video { --m: url(assets/icons/video-2.svg); }
.i-photo { --m: url(assets/icons/camera.svg); }

/* ===== Verify cards: photo covers (restored, Fabio 11/11) ===== */
.vfy-prev { position: relative; overflow: hidden; display: block; height: 200px; min-height: 0; padding: 0; border-bottom: 0; background: #0a1a33; }
.vfy-prev.is-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.215, .61, .355, 1); }
.vfy-prev.is-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 17, 34, 0) 55%, rgba(8, 17, 34, 0.28) 100%); }
.vfy-card:hover .vfy-prev.is-photo img { transform: scale(1.03); }
.vfy-go { padding-top: 20px; }
@media (max-width: 599px) { .vfy-prev { height: 170px; } }
@media (prefers-reduced-motion: reduce) { .vfy-prev.is-photo img { transition: none; } }
