/* ============================================================
   /technology/digital-id/ — Key Technologies category page.
   ADDITIONS + OVERRIDES ONLY. Loads AFTER document-verification.css;
   the page root carries BOTH .p-document-verification (shared template
   styles) and .p-keytech-digital-id (these overrides). Tokens only.

   Ronda 2 (Nacim, 2026-07-31 → 08-01): Digital ID is a PHONE story — the
   credential lives in the wallet. The rectangular hero is retired for a
   SPLIT card (copy left · a phone presenting an mDL from the wallet share
   sheet right), all inside the 100svh card (G10, never grows). Every visual
   is redrawn in the theme's own language — credential on screen, cryptographic
   hand-off, selective disclosure — in the Workflow-Builder illustration style
   (G13: white ground, grey skeleton, hairlines, ONE blue accent, Mockup chip).
   ============================================================ */

/* ---------- mock identifier chip (keeps every built mock greppable) ---------- */
.p-keytech-digital-id .dgid-mockchip {
  position: absolute; z-index: 6; top: 8px; right: 8px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--color-placeholder-yellow); color: var(--color-black);
  font-size: 11px; font-weight: 600; line-height: 1.45;
}

/* ---------- skeleton primitives (grey shapes · one blue accent) ---------- */
.p-keytech-digital-id .dgid-bar { display: block; height: 6px; border-radius: 3px; background: var(--color-grey-100); }
.p-keytech-digital-id .dgid-bar--sm { width: 40%; }
.p-keytech-digital-id .dgid-bar--md { width: 62%; }
.p-keytech-digital-id .dgid-bar--lg { width: 84%; }
.p-keytech-digital-id .dgid-bar--full { width: 100%; }
.p-keytech-digital-id .dgid-bar--accent { background: color-mix(in oklab, var(--color-blue-500) 34%, var(--color-blue-100)); }
/* light bars that stay legible on the blue credential card */
.p-keytech-digital-id .dgid-bar--onblue { background: color-mix(in oklab, var(--color-white) 58%, transparent); }

.p-keytech-digital-id .dgid-check { position: relative; width: 15px; height: 15px; border-radius: 50%; background: var(--color-blue-500); flex: 0 0 auto; }
.p-keytech-digital-id .dgid-check::after {
  content: ""; position: absolute; left: 4px; top: 4px; width: 4px; height: 6px;
  border: 1.6px solid var(--color-white); border-top: 0; border-left: 0; transform: rotate(45deg);
}
.p-keytech-digital-id .dgid-x { position: relative; width: 15px; height: 15px; border-radius: 50%; background: var(--color-grey-100); flex: 0 0 auto; }

.p-keytech-digital-id .dgid-row { display: flex; align-items: center; gap: 8px; }
.p-keytech-digital-id .dgid-row__txt { font-size: 11px; font-weight: 500; color: var(--color-grey-500); }
.p-keytech-digital-id .dgid-btn {
  height: 28px; border-radius: 999px; background: var(--color-blue-500); color: var(--color-white);
  font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.p-keytech-digital-id .dgid-btn--lg { height: 34px; font-size: var(--fs-xs); margin-top: 2px; }

/* a mini credential card (mDL) used inside the coverage wallet screen */
.p-keytech-digital-id .dgid-idcard {
  display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center;
  padding: 9px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--color-border-light);
  background: linear-gradient(140deg, var(--color-blue-100), color-mix(in oklab, var(--color-blue-100) 55%, var(--color-white)));
}
.p-keytech-digital-id .dgid-idcard__face {
  width: 30px; aspect-ratio: 3 / 4; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--color-border-light);
  background: color-mix(in oklab, var(--color-blue-500) 22%, var(--color-white));
}
.p-keytech-digital-id .dgid-idcard__lines { display: grid; gap: 5px; }

.p-keytech-digital-id .dgid-crest {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 1px var(--color-border-light);
  background: color-mix(in oklab, var(--color-blue-500) 16%, var(--color-grey-100));
}
.p-keytech-digital-id .dgid-applogo { width: 22px; height: 22px; border-radius: 6px; background: var(--color-blue-500); flex: 0 0 auto; }

/* ---------- canonical person glyph (ronda-3 avatar pass · G13) ----------
   The page has no line-drawn silhouette bust; the "person" element is the ID
   PHOTO on the credential / card / PDF result. Fill each photo frame with the
   site's own user icon (icons/user.svg, masked) so every person reads as one
   clean, consistent canonical glyph — matching face-recognition / candidate-
   verification. Tokens only, no new hex, no invented content. */
.p-keytech-digital-id .dgid-cred__photo,
.p-keytech-digital-id .dgid-idcard__face,
.p-keytech-digital-id .dgid-doc__face { display: grid; place-items: center; }
.p-keytech-digital-id .dgid-cred__photo::after,
.p-keytech-digital-id .dgid-idcard__face::after,
.p-keytech-digital-id .dgid-doc__face::after {
  content: ""; width: 68%; height: 68%;
  -webkit-mask: url(/icons/user.svg) center / contain no-repeat;
          mask: url(/icons/user.svg) center / contain no-repeat;
}
/* on the blue credential the glyph reads translucent white; on the light-blue
   wallet card it reads mid-blue; on the grey PDF face it reads grey */
.p-keytech-digital-id .dgid-cred__photo::after { background: color-mix(in oklab, var(--color-white) 62%, transparent); }
.p-keytech-digital-id .dgid-idcard__face::after { background: color-mix(in oklab, var(--color-blue-500) 46%, var(--color-white)); }
.p-keytech-digital-id .dgid-doc__face::after { background: var(--color-grey-400); }

/* ---------- the device — portrait phone ---------- */
.p-keytech-digital-id .dgid-phone {
  position: relative; width: 150px; padding: 8px 8px 0;
  border: 1px solid var(--color-grey-200); border-radius: 26px;
  background: var(--color-white);
  box-shadow: none;
}
.p-keytech-digital-id .dgid-phone--card { padding-bottom: 8px; }

/* Device-wallets coverage card: the three wallet brands cycle in a loop
   (Apple → Google → Samsung), each with its name below, crossfading. */
.p-keytech-digital-id .dgid-wallets {
  position: relative;
  width: 100%;
  min-height: 132px;
  display: grid;
  place-items: center;
}
.p-keytech-digital-id .dgid-wallet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  animation: dgid-wallet-cycle 4.5s linear infinite;
}
.p-keytech-digital-id .dgid-wallet:nth-child(1) { animation-delay: 0s; }
.p-keytech-digital-id .dgid-wallet:nth-child(2) { animation-delay: -3s; }
.p-keytech-digital-id .dgid-wallet:nth-child(3) { animation-delay: -1.5s; }
.p-keytech-digital-id .dgid-wallet img { width: 104px; height: auto; display: block; }
.p-keytech-digital-id .dgid-wallet__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--color-black);
}

/* coverage grid holds 4 cards now (NFC removed) — fill the row at wide widths
   instead of leaving an empty 5th column (shared grid is repeat(5)). */
@media (min-width: 1120px) {
  .p-keytech-digital-id .dv-capture__grid { grid-template-columns: repeat(4, 1fr); }
}

/* PDF-credentials card: blank PDF crossfades to the uploaded/read state, in a
   loop (starts on blank). Two identically-sized frames stacked. */
.p-keytech-digital-id .dgid-pdf {
  position: relative;
  width: 72%;
  max-width: 186px;
  aspect-ratio: 246 / 286;
}
.p-keytech-digital-id .dgid-pdf img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.p-keytech-digital-id .dgid-pdf__a { animation: dgid-pdf-a 3.6s ease infinite; }
.p-keytech-digital-id .dgid-pdf__b { animation: dgid-pdf-b 3.6s ease infinite; }
@keyframes dgid-pdf-a {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes dgid-pdf-b {
  0%, 42% { opacity: 0; }
  50%, 92% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .p-keytech-digital-id .dgid-pdf__a { animation: none; opacity: 0; }
  .p-keytech-digital-id .dgid-pdf__b { animation: none; opacity: 1; }
}

/* Selective-disclosure card: age-estimation flow diagram (landscape) */
.p-keytech-digital-id .dgid-cap-age {
  display: block;
  width: 94%;
  max-width: 210px;
  height: auto;
  object-fit: contain;
}

/* Government eID-apps card: real eID-providers list image, top-aligned so the
   list reads from the top (its own fade suggests it continues). */
.p-keytech-digital-id .dgid-cap-eid {
  display: block;
  width: 90%;
  max-width: 210px;
  height: auto;
  align-self: start;
  margin-top: 6px;
}
@keyframes dgid-wallet-cycle {
  0%   { opacity: 0; transform: scale(0.94); }
  4%   { opacity: 1; transform: scale(1); }
  30%  { opacity: 1; transform: scale(1); }
  34%  { opacity: 0; transform: scale(0.94); }
  100% { opacity: 0; transform: scale(0.94); }
}
@media (prefers-reduced-motion: reduce) {
  .p-keytech-digital-id .dgid-wallet { animation: none; }
  .p-keytech-digital-id .dgid-wallet:nth-child(1) { opacity: 1; position: relative; }
  .p-keytech-digital-id .dgid-wallet:nth-child(2),
  .p-keytech-digital-id .dgid-wallet:nth-child(3) { display: none; }
}
.p-keytech-digital-id .dgid-phone__scr {
  position: relative; overflow: hidden; border-radius: 18px;
  background: var(--color-grey-50); padding: 20px 12px 12px;
  display: flex; flex-direction: column; gap: 9px; min-height: 168px;
}
.p-keytech-digital-id .dgid-phone__scr::before {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 6px; border-radius: 4px; background: var(--color-grey-200);
}

/* ---------- coverage-card viz: white device on the template's blue field ---------- */
.p-keytech-digital-id .dv-cap__viz { min-height: 212px; }

/* NFC card (G13): retire the saturated solid-blue passport block for a white,
   wireframe passport whose only blue accent is the chip + the read waves — so
   the five coverage cards share one white-skeleton language. */
.p-keytech-digital-id .dv-nfc__passport {
  background: var(--color-white);
  box-shadow: inset 0 0 0 1px var(--color-border-light);
}
.p-keytech-digital-id .dv-nfc__chip {
  background: var(--color-blue-500);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-blue-500) 42%, var(--color-white));
}

/* ============================================================
   1 · HERO — EXACT document-verification geometry (owner order
   2026-08-03): zero inner overrides, so the copy group (pill · title ·
   sub · actions) sits pixel-identical to /technology/document-verification/.
   The wallet phone lives ONLY in the shared .dv-hero__foot band (the DV
   ID-row box), cut by the card foot.
   ============================================================ */
.p-keytech-digital-id .dgid-hero__copy { display: contents; }

/* the stage: the phone centered inside the foot band, flanked by proof chips */
.p-keytech-digital-id .dgid-hero__stage {
  position: relative; display: grid; place-items: start center;
  margin-bottom: -48px;
}
.p-keytech-digital-id .dgid-hero-mock { position: relative; display: grid; place-items: center; }

/* phone screen corners at 42px on this page (per spec). Needs 3 classes to
   beat solution.css's `.p-solution .sol-stage__screen{34px}`, which loads
   after this sheet. */
.p-keytech-digital-id .sol-how__stage .sol-stage__screen { border-radius: 42px; }

/* Decrypt step · animated Face-ID → Done glyph over the verify screen.
   Two same-sized SVG tiles pinned to the same spot in the screen's empty
   center; the animation plays ONCE each time the step becomes active. */
.p-keytech-digital-id .dgid-faceid {
  position: absolute;
  left: 50%;
  top: 39%;
  width: 71%;
  aspect-ratio: 402 / 299;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}
.p-keytech-digital-id .dgid-faceid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform-origin: center;
}
.p-keytech-digital-id .sol-stage__screen--rich.is-active .dgid-faceid__scan {
  animation: dgid-faceid-scan 2.4s ease forwards;
}
.p-keytech-digital-id .sol-stage__screen--rich.is-active .dgid-faceid__done {
  animation: dgid-faceid-done 2.4s ease forwards;
}
@keyframes dgid-faceid-scan {
  0%   { opacity: 0; transform: scale(0.8); }
  12%  { opacity: 1; transform: scale(1); }
  50%  { opacity: 1; transform: scale(1); }
  64%  { opacity: 0; transform: scale(0.94); }
  100% { opacity: 0; }
}
@keyframes dgid-faceid-done {
  0%, 56% { opacity: 0; transform: scale(0.8); }
  70%     { opacity: 1; transform: scale(1.06); }
  80%     { opacity: 1; transform: scale(1); }
  100%    { opacity: 1; transform: scale(1); }
}
/* reduced motion: skip the sequence, rest on the Done state */
@media (prefers-reduced-motion: reduce) {
  .p-keytech-digital-id .dgid-faceid__scan { opacity: 0; }
  .p-keytech-digital-id .dgid-faceid__done { opacity: 1; }
}

/* Verify step · the "Success!" screen fades in over the "verifying…" base
   after ~1.5s (once per activation). Full-cover, so it replaces the base. */
.p-keytech-digital-id .dgid-verify-success {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
  opacity: 0;
  z-index: 2;
}
.p-keytech-digital-id .sol-stage__screen--rich.is-active .dgid-verify-success {
  animation: dgid-verify-success 0.45s ease 1.5s forwards;
}
@keyframes dgid-verify-success {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .p-keytech-digital-id .dgid-verify-success { opacity: 1; }
}

/* hero fan: three real PNG assets — the blue digital-ID card (behind, left),
   the wallet consent sheet (front, centered), and the verified face card
   (behind, right). Replaces the constructed wallet-phone mockup. The PNGs
   carry their own soft shadows + rounded corners; we only place + rotate. */
.p-keytech-digital-id .dgid-hero-fan {
  position: relative;
  width: clamp(320px, 42vw, 540px);
  aspect-ratio: 614 / 446;
  margin: 0 auto;
}
.p-keytech-digital-id .dgid-hero-fan img {
  position: absolute;
  display: block;
  height: auto;
}
.p-keytech-digital-id .dgid-hero-fan__sheet {
  z-index: 3;
  width: 42%;
  left: 50%;
  top: 15%;
  transform: translateX(-50%) rotate(3deg);
}
.p-keytech-digital-id .dgid-hero-fan__card {
  z-index: 1;
  width: 40%;
  left: 8%;
  top: 28%;
  transform: rotate(-12deg);
}
.p-keytech-digital-id .dgid-hero-fan__face {
  z-index: 2;
  width: 30%;
  right: 6%;
  top: 22%;
  transform: rotate(6deg);
}

.p-keytech-digital-id .dgid-phone--hero {
  width: clamp(226px, 18vw, 258px);
  padding: 9px 9px 0;
  border-radius: 34px;
  border: 1px solid color-mix(in oklab, var(--color-white) 70%, var(--color-grey-200));
  box-shadow: none;
}
.p-keytech-digital-id .dgid-phone--hero .dgid-phone__scr {
  min-height: 374px; border-radius: 27px 27px 22px 22px; padding: 15px 13px 15px; gap: 10px;
}
/* home indicator so the phone reads as a full device, not an empty screen */
.p-keytech-digital-id .dgid-sheet::after {
  content: ""; width: 40%; height: 4px; border-radius: 3px;
  background: var(--color-grey-200); margin: 10px auto 2px; flex: 0 0 auto;
}
/* the wallet SHARE SHEET screen: its own grabber, so drop the base status pill */
.p-keytech-digital-id .dgid-phone__scr.dgid-sheet::before { content: none; }
.p-keytech-digital-id .dgid-sheet__grab {
  width: 42px; height: 5px; border-radius: 4px; background: var(--color-grey-200);
  margin: 2px auto 4px; flex: 0 0 auto;
}
.p-keytech-digital-id .dgid-sheet__head { display: flex; align-items: center; gap: 8px; }
.p-keytech-digital-id .dgid-walletmark {
  width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--color-grey-200), var(--color-grey-100));
  box-shadow: inset 0 0 0 1px var(--color-border-light);
}
.p-keytech-digital-id .dgid-sheet__head .dgid-bar { flex: 1; }

/* the mDL credential — the hero of the phone: a blue government card */
.p-keytech-digital-id .dgid-cred {
  position: relative; overflow: hidden; border-radius: 13px; padding: 12px;
  display: grid; gap: 10px;
  background: linear-gradient(138deg, var(--color-blue-500), color-mix(in oklab, var(--color-blue-500) 58%, var(--color-black)));
  box-shadow: none;
}
.p-keytech-digital-id .dgid-cred::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, transparent 42%, color-mix(in oklab, var(--color-white) 16%, transparent) 50%, transparent 58%);
}
.p-keytech-digital-id .dgid-cred__top { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.p-keytech-digital-id .dgid-cred__photo {
  width: 34px; aspect-ratio: 3 / 4; border-radius: 5px;
  background: color-mix(in oklab, var(--color-white) 30%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-white) 32%, transparent);
}
.p-keytech-digital-id .dgid-cred__id { display: grid; gap: 5px; }
.p-keytech-digital-id .dgid-cred__mdl { font-size: 9px; font-weight: 600; color: color-mix(in oklab, var(--color-white) 80%, transparent); }
.p-keytech-digital-id .dgid-cred__emblem {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  background: color-mix(in oklab, var(--color-white) 20%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-white) 36%, transparent);
}
.p-keytech-digital-id .dgid-cred__fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.p-keytech-digital-id .dgid-field .dgid-bar { width: 100%; }

.p-keytech-digital-id .dgid-sheet__share { text-align: center; font-size: 10px; color: var(--color-grey-400); }
.p-keytech-digital-id .dgid-row--claim {
  justify-content: flex-start; padding: 8px 10px; border-radius: 10px;
  background: var(--color-blue-100);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-blue-500) 22%, var(--color-blue-100));
}
.p-keytech-digital-id .dgid-row--claim .dgid-row__txt { color: var(--color-grey-500); font-weight: 600; }
.p-keytech-digital-id .dgid-row--hidden {
  justify-content: flex-start; padding: 8px 10px; border-radius: 10px;
  background: var(--color-grey-50); box-shadow: inset 0 0 0 1px var(--color-border-light);
}
.p-keytech-digital-id .dgid-row--hidden .dgid-row__txt { color: var(--color-grey-400); }
.p-keytech-digital-id .dgid-row__mini { margin-left: auto; font-size: 9px; font-weight: 600; color: var(--color-blue-500); }
.p-keytech-digital-id .dgid-row__mini--off { color: var(--color-grey-400); }

/* floating proof chips flanking the phone (desktop only) */
.p-keytech-digital-id .dgid-hero-chip {
  position: absolute; z-index: 3; display: none; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in oklab, var(--color-white) 96%, transparent); color: var(--color-grey-500);
  font-size: var(--fs-xs); font-weight: 600;
  box-shadow: none;
}
.p-keytech-digital-id .dgid-hero-chip .dgid-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-blue-500); }
/* float the chips OFF the phone edges so neither sits on the credential card:
   the left chip pops off the upper-left over the neutral wallet header, the
   right chip off the lower-right over the home-indicator area. */
.p-keytech-digital-id .dgid-hero-chip--l { top: 9%; left: -16%; }
.p-keytech-digital-id .dgid-hero-chip--r { bottom: 10%; right: -14%; }
@media (min-width: 1024px) { .p-keytech-digital-id .dgid-hero-chip { display: inline-flex; } }
/* mock chip: discreet, just off the phone's top-right corner */
.p-keytech-digital-id .dgid-hero-mock .dgid-mockchip { top: -10px; right: -8px; }

/* ============================================================
   2 · THREAT — re-anchor the template's red "problem" accents to the site's
   single BLUE accent, so the whole page holds one accent (blue) end to end
   (hero · pipe · hand-off · coverage · map all blue). Scoped override only —
   sibling document-verification keeps the shared red treatment. Tokens only.
   ============================================================ */
.p-keytech-digital-id .dv-threat::before {
  background: radial-gradient(900px 480px at 50% -10%, color-mix(in oklab, var(--color-blue-500) 20%, transparent), transparent 60%);
}
.p-keytech-digital-id .dv-kicker--threat { color: var(--color-blue-200); }
.p-keytech-digital-id .dv-threat__type-num { color: var(--color-blue-200); }
.p-keytech-digital-id .dv-threat__type:hover {
  border-color: color-mix(in oklab, var(--color-blue-500) 45%, transparent);
}
.p-keytech-digital-id .dv-threat__value {
  background: linear-gradient(90deg, var(--color-white) 32%, var(--color-blue-500) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================
   3b · SELECTIVE DISCLOSURE + CRYPTOGRAPHIC HAND-OFF (light) — the theme
   made visual: consent sheet left, validation console right.
   ============================================================ */
.p-keytech-digital-id .dgid-hand { background: var(--color-background); border-top: 1px solid var(--color-border-light); }
.p-keytech-digital-id .dgid-hand__head { max-width: 640px; }
.p-keytech-digital-id .dgid-hand__grid { margin-top: clamp(36px, 5vw, 52px); display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .p-keytech-digital-id .dgid-hand__grid { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 24px; align-items: stretch; }
}
.p-keytech-digital-id .dgid-hand__panel {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 22px; border-radius: 20px; border: 1px solid var(--color-border-light);
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in oklab, var(--color-blue-100) 64%, transparent), transparent 72%),
    var(--color-white);
}
.p-keytech-digital-id .dgid-hand__tag {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px;
  font-size: var(--fs-xs); font-weight: 600; color: var(--color-grey-400);
}
.p-keytech-digital-id .dgid-hand__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-blue-500); }

/* LEFT: the wallet consent sheet */
.p-keytech-digital-id .dgid-consent { flex: 1; display: grid; place-items: center; }
/* real wallet share-sheet asset (transparent PNG, own shadow) in place of
   the CSS consent mockup */
.p-keytech-digital-id .dgid-hand-sheet {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
}
.p-keytech-digital-id .dgid-consent__scr {
  width: 100%; max-width: 306px; margin-inline: auto;
  display: flex; flex-direction: column; gap: 9px;
  padding: 15px 15px 16px; border-radius: 18px; border: 1px solid var(--color-border-light);
  background: var(--color-white);
  box-shadow: none;
}
.p-keytech-digital-id .dgid-consent__title { text-align: center; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm); color: var(--color-black); }
.p-keytech-digital-id .dgid-claimrow {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 10px 11px; border-radius: 11px; border: 1px solid var(--color-border-light);
}
.p-keytech-digital-id .dgid-claimrow--on {
  background: var(--color-blue-100);
  border-color: color-mix(in oklab, var(--color-blue-500) 26%, var(--color-blue-100));
}
.p-keytech-digital-id .dgid-claimrow--off { background: var(--color-grey-50); }
.p-keytech-digital-id .dgid-claimrow__txt { font-size: var(--fs-sm); color: var(--color-grey-500); }
.p-keytech-digital-id .dgid-claimrow--off .dgid-claimrow__txt { color: var(--color-grey-400); }
.p-keytech-digital-id .dgid-claimrow__note { font-size: 10px; font-weight: 600; color: var(--color-blue-500); }
.p-keytech-digital-id .dgid-lock {
  position: relative; width: 16px; height: 16px; border-radius: 5px; flex: 0 0 auto;
  background: var(--color-grey-100); box-shadow: inset 0 0 0 1px var(--color-grey-200);
}
.p-keytech-digital-id .dgid-lock::before {
  content: ""; position: absolute; left: 5px; top: 3px; width: 6px; height: 5px;
  border: 1.5px solid var(--color-grey-300); border-bottom: 0; border-radius: 3px 3px 0 0;
}
.p-keytech-digital-id .dgid-consent__div { display: flex; align-items: center; gap: 10px; margin: 2px 0; }
.p-keytech-digital-id .dgid-consent__div::before,
.p-keytech-digital-id .dgid-consent__div::after { content: ""; height: 1px; flex: 1; background: var(--color-border-light); }
.p-keytech-digital-id .dgid-consent__div-lbl { font-size: 10px; color: var(--color-grey-400); white-space: nowrap; }

/* RIGHT: the validation console */
.p-keytech-digital-id .dgid-console {
  overflow: hidden; border-radius: 14px; border: 1px solid var(--color-border-light); background: var(--color-white);
  box-shadow: none;
}
.p-keytech-digital-id .dgid-console__bar {
  display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 13px;
  background: var(--color-grey-50); border-bottom: 1px solid var(--color-border-light);
}
.p-keytech-digital-id .dgid-console__lights { display: inline-flex; gap: 5px; }
.p-keytech-digital-id .dgid-console__lights i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-grey-200); }
.p-keytech-digital-id .dgid-console__crumb { font-size: 11px; color: var(--color-grey-400); }
.p-keytech-digital-id .dgid-console__list { list-style: none; margin: 0; padding: 9px; display: grid; gap: 7px; }
.p-keytech-digital-id .dgid-console__row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 11px; background: var(--color-grey-50); border: 1px solid var(--color-border-light);
}
.p-keytech-digital-id .dgid-console__ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--color-blue-100); color: var(--color-blue-500); }
.p-keytech-digital-id .dgid-console__ico .ds-icon { width: 17px; height: 17px; }
.p-keytech-digital-id .dgid-console__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p-keytech-digital-id .dgid-console__name { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm); color: var(--color-black); }
.p-keytech-digital-id .dgid-console__line { font-size: var(--fs-xs); color: var(--color-grey-on-white); }
.p-keytech-digital-id .dgid-console__tick { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--color-green-flow); flex: 0 0 auto; }
/* animate the console: each check ticks in, in sequence, once the panel
   scrolls into view (--i is the per-row stagger index). */
.p-keytech-digital-id .dgid-console__tick { transform: scale(0); opacity: 0; }
.p-keytech-digital-id .dgid-hand__panel--console.is-revealed .dgid-console__tick {
  animation: dgid-tick-in 0.5s var(--ease-out-expo) forwards;
  animation-delay: calc(0.4s + var(--i, 0) * 0.5s);
}
@keyframes dgid-tick-in {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
/* the "Cryptographically verified" seal fades up after the last check */
.p-keytech-digital-id .dgid-console__result { opacity: 0; }
.p-keytech-digital-id .dgid-hand__panel--console.is-revealed .dgid-console__result {
  animation: dgid-result-in 0.55s var(--ease-out-expo) 2.5s forwards;
}
@keyframes dgid-result-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.p-keytech-digital-id .dgid-console__tick::after {
  content: ""; position: absolute; left: 6px; top: 5px; width: 5px; height: 8px;
  border: 2px solid var(--color-white); border-top: 0; border-left: 0; transform: rotate(45deg);
}
.p-keytech-digital-id .dgid-console__result {
  display: flex; align-items: center; gap: 11px; padding: 14px 16px;
  border-top: 1px solid var(--color-border-light);
  background: color-mix(in oklab, var(--color-green-100) 60%, var(--color-white));
}
.p-keytech-digital-id .dgid-check--seal { width: 22px; height: 22px; background: var(--color-green-flow); }
.p-keytech-digital-id .dgid-check--seal::after { left: 7px; top: 6px; width: 5px; height: 9px; border-width: 2px; }
.p-keytech-digital-id .dgid-console__result-txt { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-body); color: var(--color-green-600); }
/* one living accent: the verified seal breathes a soft ring */
.p-keytech-digital-id .dgid-console__result .dgid-check--seal { animation: dgid-seal 2.8s var(--ease-out-expo) infinite; }
@keyframes dgid-seal {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-green-flow) 46%, transparent); }
  70%, 100% { box-shadow: 0 0 0 11px color-mix(in oklab, var(--color-green-flow) 0%, transparent); }
}

/* ============================================================
   4 · PDF credentials (module) — a rectangular document/result window
   ============================================================ */
.p-keytech-digital-id .dgid-doc {
  position: relative; width: 90%; max-width: 224px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--color-border-light); background: var(--color-white);
  box-shadow: none;
}
.p-keytech-digital-id .dgid-doc__bar {
  display: flex; align-items: center; gap: 5px; padding: 8px 11px;
  border-bottom: 1px solid var(--color-border-light); background: var(--color-grey-50);
}
.p-keytech-digital-id .dgid-doc__bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--color-grey-200); }
.p-keytech-digital-id .dgid-doc__body { padding: 13px; display: grid; gap: 11px; }
.p-keytech-digital-id .dgid-doc__row { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: center; }
.p-keytech-digital-id .dgid-doc__face { width: 42px; aspect-ratio: 3 / 4; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--color-border-light); background: var(--color-grey-100); }
.p-keytech-digital-id .dgid-doc__fields { display: grid; gap: 6px; }
.p-keytech-digital-id .dgid-chip-ok {
  display: inline-flex; align-items: center; gap: 6px; align-self: start; padding: 4px 9px; border-radius: 999px;
  background: var(--color-blue-100); color: var(--color-blue-500); font-size: 11px; font-weight: 600;
}
.p-keytech-digital-id .dgid-chip-ok .dgid-check { width: 13px; height: 13px; }
.p-keytech-digital-id .dgid-chip-ok .dgid-check::after { left: 3.5px; top: 3px; width: 3.5px; height: 5px; }

/* selective-disclosure card (coverage): greyed (unshared) claim rows read muted */
.p-keytech-digital-id .dgid-claim--off .dgid-bar,
.p-keytech-digital-id .dgid-claim--off .dgid-row__txt { opacity: 0.42; }

@media (prefers-reduced-motion: reduce) {
  .p-keytech-digital-id .dgid-phone,
  .p-keytech-digital-id .dgid-doc { box-shadow: none; }
  .p-keytech-digital-id .dgid-console__result .dgid-check--seal { animation: none; }
  /* console: no sequenced reveal — show all checks + result at rest */
  .p-keytech-digital-id .dgid-console__tick { transform: none; opacity: 1; animation: none; }
  .p-keytech-digital-id .dgid-console__result { opacity: 1; animation: none; }
}
