/* ============================================================================
   showcase.css - shared chrome + components for the ai.trulioo.com showcase
   (index / kya / ubo). Light-only. Built on the shared Trulioo DS v3
   (/web-components/tokens/trulioo-3-*.css) - no CDN, CSP-safe.

   Rhythm: light-forward. White / neutral-10 body, dark-green used only for the
   hero band, the footer, and accent visuals (code panels, credential cards,
   the hero layer stack). Mint accent = --tds-accent.
   ============================================================================ */

:root{
  --tds-accent: rgb(167,237,192);          /* mint - not in the DS, defined here */
  --tds-accent-strong: rgb(120,205,158);
  --ink: var(--neutral-100);               /* rgb(36,48,47) */
  --ink-soft: var(--neutral-90);           /* rgb(74,89,88) */
  --muted: var(--neutral-80);              /* rgb(118,133,132) */
  --line: var(--neutral-20);               /* rgb(219,226,225) */
  --bg: #ffffff;
  --bg-alt: var(--neutral-10);             /* rgb(235,241,240) */
  --dark: var(--dark-green-100);           /* rgb(23,45,45) */
  --mid: var(--mid-green-100);             /* rgb(0,76,69) */
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  --maxw: 1240px;
  --sec-y: 96px;                           /* section rhythm - see .sec */
}
@media (max-width:900px){ :root{ --sec-y: 72px; } }
@media (max-width:560px){ :root{ --sec-y: 56px; } }

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 92px; }
body{
  margin:0; background: var(--bg); color: var(--ink);
  font-family: var(--font-ui); line-height:1.55; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a{ color: var(--mid); text-decoration:none; }
h1,h2,h3{ font-family: var(--font-brand); font-weight:500; letter-spacing:-.02em; color: var(--ink); margin:0; }
img{ max-width:100%; }
::selection{ background: rgb(167,237,192); color: rgb(23,45,45); }
.wrap{ max-width: var(--maxw); margin:0 auto; padding:0 32px; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.skip{ position:absolute; left:-999px; top:0; z-index:200; background:#fff; color:var(--mid); padding:10px 16px; border-radius:0 0 8px 0; }
.skip:focus{ left:0; }

/* Inline SVG icon system (sprite via <use>) */
.ic{ width:1em; height:1em; flex:none; display:inline-block; vertical-align:-.125em; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.icon-sprite{ position:absolute; width:0; height:0; overflow:hidden; }

/* ---- Reveal-on-scroll ---------------------------------------------------- */
[data-reveal]{ opacity:0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
[data-reveal].is-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  [data-reveal]{ opacity:1 !important; transform:none !important; transition:none; }
}

/* ---- Light sticky header (Alpha reference) ------------------------------- */
.hdr{ position:sticky; top:0; z-index:60; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom:1px solid var(--line); }
@supports not (backdrop-filter: blur(10px)){ .hdr{ background:#fff; } }
.hdr__in{ height:72px; display:flex; align-items:center; gap:24px; }
.brand{ display:flex; align-items:center; gap:0; flex:none; }
/* A3 "Agent Brackets" lockup (Trulioo [AI]) - see
 * /web-components/assets/brand/a3/README.md. The brand sizing rule is stated as
 * the width of the WORDMARK PORTION (recommended 124px, minimum 100px), and the
 * wordmark is 70.1% of the lockup width - so 31px tall = 179px wide lockup =
 * a 125px wordmark. This height is load-bearing: it OVERRIDES the width/height
 * attributes in the HTML (those exist only to reserve layout and avoid CLS), so
 * changing the asset means changing both. Use the SVG, not the PNGs in the same
 * folder: those are padded canvases and would draw a tiny mark in this box. */
.brand__logo{ height:31px; width:auto; display:block; }
.brand__div{ width:1px; height:18px; background: var(--neutral-30); }
.nav{ display:flex; align-items:center; gap:0; margin-left:20px; overflow:hidden; }
/* Nav type tracks trulioo.com (18px/400/.03em, sentence case) scaled down for
 * our shorter bar. */
.nav a{ font-size:16px; font-weight:400; letter-spacing:.03em; color: var(--ink-soft); white-space:nowrap; transition: color .16s ease; padding:0 18px; }
.nav a:first-child{ padding-left:0; }
.nav a + a{ border-left:1px solid var(--line); }
.nav a:hover{ color: var(--mid); }
/* Current page. The aria-current attribute is the source of truth (each page sets
 * it on its own nav link), so the announced state and the visual state can never
 * disagree. Mirrors the /developer header, which already styled a[aria-current]. */
.nav a[aria-current]{ color: var(--ink); font-weight:600; }
.nav a.is-back{ color: var(--mid); font-weight:600; display:inline-flex; align-items:center; gap:7px; }
.sp{ flex:1; }
.hdr__cta{ flex:none; }
.progress{ height:2px; background: var(--neutral-10); }
.progress__bar{ height:100%; background: var(--tds-accent-strong); transform: scaleX(0); transform-origin:0 50%; transition: transform .1s linear; }

/* ---- Buttons ------------------------------------------------------------- */
.btn{ display:inline-flex; align-items:center; gap:9px; font-family: var(--font-ui); font-weight:600; font-size:14px; height:40px; padding:0 18px; border-radius:8px; border:1px solid transparent; cursor:pointer; white-space:nowrap; text-decoration:none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease; }
.btn:hover{ text-decoration:none; }
.btn .ic{ font-size:12px; }
.btn--lg{ height:52px; padding:0 26px; font-size:16px; }
.btn--md{ height:46px; padding:0 22px; font-size:15px; }
.btn--primary{ background: var(--tds-accent); color: rgb(23,45,45); }
.btn--primary:hover{ color: rgb(23,45,45); transform: translateY(-1px); box-shadow:0 12px 30px rgba(167,237,192,.4); }
.btn--solid{ background: var(--mid); color:#fff; }
.btn--solid:hover{ color:#fff; background: var(--dark); transform: translateY(-1px); box-shadow:0 10px 26px rgba(23,45,45,.18); }
.btn--ghost{ background:transparent; color: var(--ink); border-color: var(--neutral-30); }
.btn--ghost:hover{ color: var(--mid); border-color: var(--mid); transform: translateY(-1px); box-shadow:0 8px 22px rgba(23,45,45,.10); }
/* on a dark band */
.on-dark .btn--ghost,.btn--ghost.on-dark{ color:#fff; border-color: rgba(255,255,255,.28); }
.on-dark .btn--ghost:hover,.btn--ghost.on-dark:hover{ color:#fff; border-color: rgba(167,237,192,.65); background: rgba(255,255,255,.05); transform: translateY(-1px); box-shadow:0 10px 26px rgba(0,0,0,.22); }

/* text link with arrow */
.tlink{ display:inline-flex; align-items:center; gap:9px; font-size:15px; font-weight:600; color: var(--mid); transition: gap .16s ease, color .16s ease; }
.tlink:hover{ gap:12px; }
.on-dark .tlink{ color: var(--tds-accent); }
.on-dark .tlink:hover{ color:#fff; }

/* ---- Section rhythm ------------------------------------------------------
   ONE token drives every section's vertical rhythm - do not add per-section
   padding overrides. Three steps (96 / 72 / 56) is the whole scale; anything
   between them is noise nobody can see but everybody has to maintain.

   Band discipline: white is the default. Dark/mid bands are punctuation, not
   alternation - budget three per page (hero, one mid-page proof band, the
   closing CTA) and let --bg-alt do the rest. Alternating every section turns
   contrast into texture and stops signalling anything. */
.sec{ padding: var(--sec-y) 0; }
.sec--alt{ background: var(--bg-alt); }
.sec--dark{ background: var(--dark); color:#fff; }
.sec--mid{ background: var(--mid); color:#fff; }
.sec--dark h1,.sec--dark h2,.sec--dark h3,.sec--mid h2,.sec--mid h3{ color:#fff; }
/* Two adjacent white bands need a hairline; a band against a tinted or dark
   neighbour already has an edge. */
.sec + .sec:not(.sec--alt):not(.sec--dark):not(.sec--mid){ border-top:1px solid var(--line); }
.sec--alt + .sec:not(.sec--alt):not(.sec--dark):not(.sec--mid),
.sec--dark + .sec, .sec--mid + .sec{ border-top:0; }
.eyebrow{ font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color: var(--mid); }
.on-dark .eyebrow{ color: var(--tds-accent); }
.lead{ font-size:18px; line-height:1.6; color: var(--ink-soft); text-wrap:pretty; }
.on-dark .lead{ color: rgba(255,255,255,.74); }
.h-sec{ font-size:clamp(30px,3.4vw,46px); line-height:1.06; margin:16px 0 0; text-wrap:balance; }
.center{ text-align:center; }

/* Section head grid (title left, lead right, aligned bottom) */
.sechead{ display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); gap:60px; align-items:end; }
.sechead .lead{ margin:0; max-width:560px; }

/* ---- Cards --------------------------------------------------------------- */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:52px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:52px; }
.card{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:30px 28px 32px; transition: box-shadow .2s ease, border-color .2s ease; }
.card--hover:hover{ box-shadow:0 16px 40px rgba(23,45,45,.09); border-color: var(--mid-green-40); }
.card__ic{ color: var(--mid); font-size:18px; }
.card h3,.card__title{ font-family: var(--font-brand); font-size:21px; font-weight:600; margin:20px 0 0; letter-spacing:-.01em; }
.card p{ margin:10px 0 0; font-size:15px; line-height:1.6; color: var(--ink-soft); }
.card__num{ font-family: var(--font-brand); font-size:13px; font-weight:700; color: var(--mid); letter-spacing:.04em; }
.card--dash{ border:1px dashed var(--neutral-30); background: var(--bg-alt); padding:24px 26px; }
.card--dash .card__title{ font-size:18px; }
.card--dash p{ color: var(--muted); font-size:14px; }
.card--dash .card__ic{ color: var(--muted); font-size:24px; }

/* Pull-quote band */
.quote{ margin-top:42px; padding:30px 34px; border-radius:12px; background: var(--mid); color:#fff; display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
.quote__ic{ color: var(--tds-accent); font-size:18px; }
.quote p{ margin:0; flex:1; min-width:300px; font-family: var(--font-brand); font-size:clamp(19px,1.9vw,25px); font-weight:400; line-height:1.35; letter-spacing:-.012em; }
.quote__by{ font-size:13px; color: rgba(255,255,255,.66); line-height:1.5; }

/* Dark accent code / credential panel */
.panel{ border-radius:14px; background: rgba(9,26,26,.96); border:1px solid rgba(167,237,192,.18); overflow:hidden; box-shadow:0 30px 70px rgba(0,0,0,.28); }
.sec--dark .panel{ background: rgba(9,26,26,.72); }
.panel__head{ display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid rgba(255,255,255,.08); }
.panel__head .ic{ color: var(--tds-accent); font-size:12px; }
.panel__name{ font-size:12.5px; font-weight:600; color:#fff; letter-spacing:.02em; }
.panel__valid{ margin-left:auto; display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color: var(--tds-accent); }
.code{ padding:20px 22px; font-family: var(--font-mono); font-size:13px; line-height:1.85; color: rgba(255,255,255,.62); }
.code .g{ color: rgb(167,237,192); }
.code .pl{ padding-left:18px; }
.panel__foot{ padding:14px 22px; border-top:1px solid rgba(255,255,255,.1); font-size:12px; color: rgba(255,255,255,.42); }

/* ---- Right-rail section dots -------------------------------------------- */
.dots{ position:fixed; right:20px; top:50%; transform:translateY(-50%); z-index:50; display:flex; flex-direction:column; gap:12px; align-items:center; }
.dot{ width:6px; height:6px; border-radius:50%; background: var(--neutral-30); transition: transform .25s ease, background .25s ease; border:0; padding:0; cursor:pointer; }
.dot.is-active{ background: var(--mid); transform: scale(1.7); }
@media (max-width:1200px){ .dots{ display:none; } }

/* ---- Footer -------------------------------------------------------------- */
.foot{ background: var(--dark); color: rgba(255,255,255,.6); padding:44px 0; }
.foot__in{ display:flex; flex-wrap:wrap; align-items:center; gap:24px; }
/* 27px = a 156px-wide A3 lockup = a 109px wordmark - above the 100px brand
 * minimum, and 87% of the header, holding the header:footer ratio the plain
 * wordmark used. Overrides the HTML width/height like .brand__logo above. */
.foot__logo{ height:27px; width:auto; display:block; }
/* Footer links follow trulioo.com: solid white, mint on hover (not a dimmed
 * grey that lifts to white). */
.foot__links{ display:flex; gap:24px; margin-left:auto; font-size:15px; letter-spacing:.03em; flex-wrap:wrap; }
.foot__links a{ color:#fff; transition: color .16s ease; }
.foot__links a:hover{ color: var(--tds-accent, rgb(167,237,192)); }
.foot__fine{ margin-top:24px; font-size:12px; color: rgba(255,255,255,.36); }

/* ============================================================================
   HERO (dark band) - shared shell
   ============================================================================ */
.hero{ position:relative; background: var(--dark); color:#fff; overflow:hidden; padding:132px 0 90px; }
.hero__glow{ position:absolute; inset:0; background: radial-gradient(1000px 560px at 74% 6%, rgba(0,76,69,.9), transparent 68%); pointer-events:none; }
.hero__rule{ position:absolute; left:0; right:0; bottom:0; height:1px; background: linear-gradient(90deg,transparent,rgba(167,237,192,.35),transparent); }
.hero__grid{ position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.06fr); gap:56px; align-items:center; }
.hero h1{ font-size:clamp(42px,4.9vw,68px); line-height:1.03; letter-spacing:-.03em; text-wrap:balance; color:#fff; }
.hero h1 .accent{ color: var(--tds-accent); }
.hero__lead{ margin:24px 0 0; max-width:520px; font-size:19px; line-height:1.55; color: rgba(255,255,255,.74); text-wrap:pretty; }
.hero__lead strong{ color:#fff; font-weight:600; }
.hero__cta{ display:flex; flex-wrap:wrap; gap:12px; margin-top:34px; }
.hero__note{ margin-top:20px; font-size:13.5px; color: rgba(255,255,255,.5); }
.hero__stats{ display:flex; flex-wrap:wrap; gap:10px 28px; margin-top:40px; padding-top:24px; border-top:1px solid rgba(255,255,255,.1); font-size:13px; color: rgba(255,255,255,.56); }
.pill{ display:inline-flex; align-items:center; gap:10px; padding:6px 12px; border:1px solid rgba(167,237,192,.28); border-radius:9999px; font-size:13px; color: rgba(255,255,255,.82); }
.pill__dot{ width:6px; height:6px; border-radius:50%; background: var(--tds-accent); }
.pill__tag{ padding:3px 9px; border-radius:9999px; background: rgba(167,237,192,.16); color: var(--tds-accent); font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }

/* Stat strip under hero */
.statbar{ background: var(--mid); border-top:1px solid rgba(167,237,192,.18); border-bottom:1px solid rgba(167,237,192,.18); }
.statbar__in{ display:flex; flex-wrap:wrap; gap:14px 44px; align-items:center; justify-content:space-between; padding:20px 32px; }
.statbar span{ display:flex; align-items:center; gap:10px; font-size:14px; color: rgba(255,255,255,.9); }
.statbar .ic{ color: var(--tds-accent); font-size:13px; }

/* ============================================================================
   HERO LAYER STACK (index) - 3D isometric, hover/focus to fan
   ============================================================================ */
.stack{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; align-items:center; }
.stack__stage{ position:relative; height:420px; perspective:1600px; }
.stack__hits{ position:absolute; inset:0; display:flex; flex-direction:column; z-index:4; }
.stack__hit{ flex:1; cursor:pointer; border:0; background:transparent; padding:0; }
.stack__scene{ position:absolute; inset:0; transform-style:preserve-3d; transform:rotateX(58deg) rotateZ(-42deg); pointer-events:none; }
.stack__layer{ position:absolute; left:20%; top:22%; width:48%; height:48%; transform-style:preserve-3d; transition: transform .35s var(--ease); }
/* Default isometric offsets so the stack reads correctly before JS / with no JS.
   showcase.js re-applies these same base Z values and fans +34px on interaction. */
.stack__layer[data-layer="0"]{ transform: translateZ(168px); }
.stack__layer[data-layer="1"]{ transform: translateZ(112px); }
.stack__layer[data-layer="2"]{ transform: translateZ(56px); }
.stack__layer[data-layer="3"]{ transform: translateZ(0); }
.stack__layer .face{ position:absolute; inset:0; box-shadow:0 18px 40px rgba(0,0,0,.28); }
.stack__layer .side{ position:absolute; inset:0; transform: translateZ(-24px); }
.stack__labels{ display:flex; flex-direction:column; gap:2px; }
.stack__label{ display:flex; align-items:center; gap:12px; padding:9px 0; cursor:pointer; background:transparent; border:0; text-align:left; }
.stack__dash{ display:block; width:20px; height:1px; background: rgba(255,255,255,.3); transition: width .25s ease, background .25s ease; }
.stack__labeltext{ font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color: rgba(255,255,255,.55); transition: color .25s ease; }
.stack__label.is-active .stack__dash{ width:38px; background: var(--tds-accent); }
.stack__label.is-active .stack__labeltext{ color: var(--tds-accent); }
.stack__detailbox{ margin-top:22px; min-height:92px; padding:18px 20px; border-radius:10px; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); }
.stack__detail{ display:none; font-size:14.5px; line-height:1.55; color: rgba(255,255,255,.8); }
.stack__detail.is-active{ display:block; }
.stack__hint{ margin-top:12px; display:inline-flex; align-items:center; gap:8px; font-size:12px; color: rgba(255,255,255,.4); }

/* ============================================================================
   DEV TABS (index) + DAP attributes
   ============================================================================ */
.tabs{ display:flex; gap:2px; padding:10px 12px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.tab{ appearance:none; border:0; background:transparent; cursor:pointer; font-family: var(--font-ui); font-size:13px; font-weight:600; padding:11px 15px; border-radius:8px 8px 0 0; color: rgba(255,255,255,.6); border-bottom:2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.tab.is-active{ color:#fff; border-bottom-color: var(--tds-accent); }
.tabpanes{ padding:26px 26px 22px; min-height:300px; }
.tabpane{ display:none; font-family: var(--font-mono); font-size:13px; line-height:1.9; color: rgba(255,255,255,.66); }
.tabpane.is-active{ display:block; }
.tabpane .note{ margin-bottom:14px; font-family: var(--font-ui); font-size:12.5px; color: rgba(255,255,255,.5); }
.tabpane .callout{ margin-top:14px; padding:14px 16px; border-radius:8px; background: rgba(167,237,192,.08); border:1px solid rgba(167,237,192,.22); color:#fff; }

.attr{ cursor:pointer; background:#fff; border:1px solid var(--line); border-radius:10px; padding:18px 20px; transition: border-color .2s ease, box-shadow .2s ease; text-align:left; width:100%; display:block; font-family: var(--font-ui); }
.attr + .attr{ margin-top:10px; }
.attr__t{ font-family: var(--font-brand); font-size:17px; font-weight:600; color: var(--ink); }
.attr__d{ margin-top:6px; font-size:14.5px; line-height:1.5; color: var(--ink-soft); }
.attr.is-active{ border-color: var(--mid); box-shadow:0 10px 26px rgba(23,45,45,.1); }
.tok{ padding-left:18px; border-radius:4px; transition: background .25s ease; }
.tok.is-active{ background: rgba(167,237,192,.16); }

/* ============================================================================
   KYA agent-card state machine (sits on the dark hero)
   ============================================================================ */
/* KYA credential flip card (hero): unverified dark card -> verified light
   Digital Agent Profile -> flip to the signed SD-JWT-VC wire. Ports the earlier
   card's deck / 3D flip / parallax + sheen / verify sweep into the DS v3
   light-forward system. Driven by real buttons; faces are aria toggled. */
.kcard{ display:flex; flex-direction:column; align-items:center; }
.kcard__stage{ position:relative; height:430px; width:100%; max-width:340px; margin:0 auto; perspective:1600px; perspective-origin:50% 42%; }
.kcard__deck{ position:absolute; inset:0; margin:auto; width:302px; height:406px; border-radius:22px; background:linear-gradient(160deg,rgba(255,255,255,.09),rgba(255,255,255,.02)); border:1px solid rgba(255,255,255,.12); transition:transform .6s var(--ease), opacity .6s; }
.kcard__deck--1{ transform:translate(20px,15px) rotate(4deg) scale(.97); opacity:.5; }
.kcard__deck--2{ transform:translate(38px,28px) rotate(8deg) scale(.94); opacity:.26; }

.kcard__flip{ position:absolute; inset:0; margin:auto; width:302px; height:406px; padding:0; border:0; background:transparent; transform-style:preserve-3d; transition:transform .9s cubic-bezier(.7,.02,.28,1); cursor:pointer; }
.kcard__flip:focus-visible{ outline:2px solid var(--tds-accent); outline-offset:6px; border-radius:22px; }
.kcard__flip.is-flipped{ transform:rotateY(180deg); }
.kcard__face{ position:absolute; inset:0; border-radius:22px; overflow:hidden; backface-visibility:hidden; -webkit-backface-visibility:hidden; box-shadow:0 30px 70px rgba(0,0,0,.42); text-align:left; }

/* FRONT - verified light profile (default) / unverified dark (.is-unverified) */
.kcard__front{ padding:22px 22px 20px; display:flex; flex-direction:column; transition:background .5s, color .5s; background:linear-gradient(160deg,#ffffff 0%, #eaf5ee 100%); color:var(--ink); border:1px solid rgba(167,237,192,.55); }
.kcard__front.is-unverified{ background:linear-gradient(157deg, #21403c 0%, #16302e 100%); color:rgba(255,255,255,.9); border:1px solid rgba(255,255,255,.16); }
.kcard__front::before{ content:""; position:absolute; inset:-40%; background:radial-gradient(circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,.14), rgba(255,255,255,0) 42%); pointer-events:none; }

.kcard__head{ position:relative; }
.kcard__uhead{ display:none; align-items:center; gap:10px; }
.kcard__front.is-unverified .kcard__uhead{ display:inline-flex; }
.kcard__front.is-unverified .kcard__vhead{ display:none; }
.kcard__avatar{ width:36px; height:36px; border-radius:11px; display:grid; place-items:center; background:linear-gradient(150deg, rgba(167,237,192,.22), rgba(167,237,192,.06)); border:1px solid rgba(167,237,192,.32); color:var(--tds-accent); }
.kcard__kind{ font-size:11px; letter-spacing:.18em; font-weight:700; color:rgba(255,255,255,.6); }
.kcard__vhead{ display:flex; align-items:center; gap:11px; }
.kcard__check{ width:28px; height:28px; border-radius:50%; background:var(--mid); color:#fff; display:grid; place-items:center; flex:none; transform:scale(0); transition:transform .4s cubic-bezier(.34,1.56,.64,1) .15s; }
.kcard__front:not(.is-unverified) .kcard__check{ transform:scale(1); }
.kcard__vtitle{ display:block; font-family:var(--font-brand); font-weight:600; font-size:15px; color:var(--mid); letter-spacing:-.01em; }
.kcard__vsub{ display:block; font-size:10px; letter-spacing:.14em; color:var(--muted); margin-top:1px; }

.kcard__mid{ position:relative; padding:14px 0 12px; }
.kcard__name{ display:block; font-family:var(--font-brand); font-size:23px; font-weight:600; letter-spacing:-.02em; line-height:1.12; color:var(--ink); }
.kcard__front.is-unverified .kcard__name{ color:#F4FAF7; }
.kcard__role{ display:block; font-size:12.5px; color:var(--muted); margin-top:5px; }
.kcard__front.is-unverified .kcard__role{ color:rgba(255,255,255,.55); }

.kcard__kv{ display:grid; gap:8px; }
.kcard__row{ display:flex; justify-content:space-between; gap:16px; font-size:12.5px; }
.kcard__k{ color:var(--muted); }
.kcard__front.is-unverified .kcard__k{ color:rgba(255,255,255,.5); }
.kcard__v{ font-family:var(--font-mono); text-align:right; color:var(--ink); overflow:hidden; text-overflow:ellipsis; }
.kcard__front.is-unverified .kcard__v{ color:rgba(255,255,255,.5); }
.kcard__v.good{ color:var(--mid); font-weight:600; }
.kcard__front.is-unverified .kcard__v.good{ color:rgba(255,255,255,.5); font-weight:400; }
/* verify moment: mint sweep + staggered row reveal */
@keyframes kc-sweep{ from{ opacity:.85; transform:translateY(-100%); } to{ opacity:0; transform:translateY(120%); } }
@keyframes kc-row-in{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
.kcard__front::after{ content:""; position:absolute; inset:0; pointer-events:none; opacity:0; background:linear-gradient(180deg, transparent, rgba(167,237,192,.4) 50%, transparent); }
.kcard__front:not(.is-unverified)::after{ animation:kc-sweep .7s cubic-bezier(.4,0,.2,1) .05s; }
.kcard__front:not(.is-unverified) .kcard__row{ animation:kc-row-in .45s var(--ease) both; }
.kcard__front:not(.is-unverified) .kcard__row:nth-child(1){ animation-delay:.12s; }
.kcard__front:not(.is-unverified) .kcard__row:nth-child(2){ animation-delay:.19s; }
.kcard__front:not(.is-unverified) .kcard__row:nth-child(3){ animation-delay:.26s; }
.kcard__front:not(.is-unverified) .kcard__row:nth-child(4){ animation-delay:.33s; }
.kcard__front:not(.is-unverified) .kcard__row:nth-child(5){ animation-delay:.40s; }

.kcard__warn{ display:none; align-items:center; gap:8px; color:rgb(250,170,148); font-size:12px; margin-top:12px; font-weight:600; }
.kcard__front.is-unverified .kcard__warn{ display:flex; }
.kcard__warndot{ width:8px; height:8px; border-radius:50%; background:rgb(247,125,92); box-shadow:0 0 0 3px rgba(247,125,92,.2); flex:none; }
.kcard__foot{ display:flex; align-items:flex-end; justify-content:space-between; padding-top:14px; margin-top:auto; border-top:1px solid var(--line); }
.kcard__front.is-unverified .kcard__foot{ border-top-color:rgba(255,255,255,.1); }
.kcard__idk{ display:block; font-size:10px; letter-spacing:.16em; color:var(--muted); }
.kcard__front.is-unverified .kcard__idk{ color:rgba(255,255,255,.5); }
.kcard__id{ display:block; font-family:var(--font-mono); font-size:12px; margin-top:3px; color:var(--ink); }
.kcard__front.is-unverified .kcard__id{ color:rgba(211,230,223,.9); }
.kcard__ver{ font-family:var(--font-mono); font-size:10px; line-height:1.3; letter-spacing:.08em; color:var(--muted); text-align:right; }
.kcard__front.is-unverified .kcard__ver{ color:rgba(255,255,255,.5); }

/* BACK - signed SD-JWT-VC wire (dark code face) */
.kcard__schema{ transform:rotateY(180deg); background:rgba(6,20,18,.97); color:rgba(234,243,239,.9); border:1px solid rgba(167,237,192,.4); padding:18px 18px 15px; display:flex; flex-direction:column; }
.kcard__shead{ display:flex; align-items:center; justify-content:space-between; padding-bottom:11px; border-bottom:1px solid rgba(255,255,255,.1); }
.kcard__stitle{ font-family:var(--font-mono); font-size:11px; letter-spacing:.04em; color:rgba(157,181,174,.9); }
.kcard__sbadge{ font-family:var(--font-mono); font-size:10px; letter-spacing:.06em; color:var(--tds-accent); border:1px solid rgba(167,237,192,.45); border-radius:999px; padding:2px 9px; background:rgba(167,237,192,.14); }
.kcard__code{ flex:1; margin:12px 0 10px; overflow:auto; font-family:var(--font-mono); font-size:10.5px; line-height:1.55; }
.kcard__code > div{ white-space:pre; }
.kc-in{ padding-left:16px; }
.kc-in2{ padding-left:32px; }
.kc-k{ color:#7fd6ea; }
.kc-s{ color:var(--tds-accent); }
.kc-n{ color:rgb(247,193,27); }
.kc-c{ color:rgba(157,181,174,.8); }
.kc-dap{ color:var(--tds-accent); font-weight:600; padding-left:16px; }
.kcard__sfoot{ font-size:10px; color:rgba(157,181,174,.85); letter-spacing:.02em; }
.kcard__sfoot b{ color:var(--tds-accent); }

/* controls + copy */
.kcard__controls{ display:flex; gap:10px; margin:26px 0 8px; flex-wrap:wrap; align-items:center; justify-content:center; }
.kcard__controls .btn{ height:46px; border-radius:9999px; padding:0 22px; font-size:14.5px; }
.kcard__controls .btn[hidden]{ display:none !important; }
.kcard__hint{ margin:6px 0 0; color:rgba(255,255,255,.62); font-size:12.5px; text-align:center; min-height:20px; }
.kcard__primer{ max-width:360px; margin:12px auto 0; font-size:12.5px; line-height:1.55; color:rgba(255,255,255,.5); text-align:center; }
.kcard__primer b{ color:var(--tds-accent); }

@media (prefers-reduced-motion: reduce){
  .kcard__flip, .kcard__deck, .kcard__front::before, .kcard__check{ transition:none !important; }
  .kcard__front::after, .kcard__front .kcard__row{ animation:none !important; }
}

/* Numbered step cards (KYA how-it-works) */
.card__step{ font-family:var(--font-brand); font-size:44px; font-weight:600; line-height:1; letter-spacing:-.03em; color:var(--mid-green-40); }
.card__step + .card__title{ margin-top:22px; }
.card p code{ font-family:var(--font-mono); font-size:.86em; color:var(--mid); background:rgba(0,76,69,.08); padding:1px 5px; border-radius:5px; }

/* Note band */
.note-band{ margin-top:24px; padding:22px 26px; border-radius:12px; background:var(--light-green-40); border:1px solid var(--mid-green-40); display:flex; gap:14px; align-items:flex-start; }
.note-band__k{ flex:none; font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--mid); margin-top:2px; }
.note-band p{ margin:0; font-size:14.5px; line-height:1.6; color:var(--ink-soft); }

/* Assurance tiers */
.tier{ border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.tier--feature{ border-color:var(--mid); box-shadow:0 16px 40px rgba(23,45,45,.1); }
.tier__head{ display:flex; align-items:center; justify-content:space-between; padding:18px 22px; background:var(--bg-alt); border-bottom:1px solid var(--line); }
.tier--feature .tier__head{ background:var(--mid); border-bottom:0; }
.tier__name{ font-family:var(--font-brand); font-size:18px; font-weight:600; color:var(--ink); }
.tier--feature .tier__name{ color:#fff; }
.tier__tag{ font-family:var(--font-mono); font-size:12px; color:var(--muted); }
.tier--feature .tier__tag{ color:var(--tds-accent); }
.tier__body{ padding:22px; }
.tier__t{ font-size:15px; font-weight:600; color:var(--ink); }
.tier__body p{ margin:8px 0 0; font-size:14.5px; line-height:1.55; color:var(--ink-soft); }

/* Transparency-log callout (tiers section) */
.tx-note{ margin-top:64px; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:48px; align-items:start; padding:38px 42px; border-radius:16px; background:rgba(167,237,192,.09); border:1px solid rgba(0,76,69,.14); }
.tx-note__eyebrow{ display:inline-flex; align-items:center; gap:8px; font-family:var(--font-mono); font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--mid); }
.tx-note__eyebrow .ic{ width:15px; height:15px; }
.tx-note__h{ margin:14px 0 0; font-family:var(--font-brand); font-size:22px; line-height:1.22; letter-spacing:-.018em; color:var(--ink); }
.tx-note__p{ margin:12px 0 0; font-size:14.5px; line-height:1.62; color:var(--ink-soft); }
.tx-note__p code{ font-family:var(--font-mono); font-size:12.5px; color:var(--mid); background:rgba(0,76,69,.08); padding:1px 5px; border-radius:5px; }
.tx-note__grid{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:16px; }
.tx-note__grid li{ display:flex; gap:12px; align-items:flex-start; }
.tx-note__grid .ic{ flex:none; width:18px; height:18px; color:var(--mid); margin-top:2px; }
.tx-note__grid b{ display:block; font-size:14.5px; font-weight:600; color:var(--ink); }
.tx-note__grid span{ display:block; margin-top:3px; font-size:13.5px; line-height:1.5; color:var(--ink-soft); }

/* ============================================================================
   UBO sticky steps + run console
   ============================================================================ */
.steps-grid{ display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); gap:72px; margin-top:56px; align-items:start; }
.steps{ display:flex; flex-direction:column; }
.step{ min-height:64vh; display:flex; flex-direction:column; justify-content:center; padding-left:26px; border-left:2px solid rgba(255,255,255,.12); transition: border-color .3s ease; }
.step.is-active{ border-left-color: var(--tds-accent); }
.step__num{ font-size:12px; font-weight:700; letter-spacing:.16em; color: rgba(255,255,255,.4); transition: color .3s ease; }
.step.is-active .step__num{ color: var(--tds-accent); }
.step h3{ font-size:clamp(26px,2.8vw,38px); font-weight:500; letter-spacing:-.02em; margin:14px 0 0; color: rgba(255,255,255,.5); transition: color .3s ease; }
.step.is-active h3{ color:#fff; }
.step p{ margin:16px 0 0; font-size:17px; line-height:1.6; color: rgba(255,255,255,.62); max-width:420px; text-wrap:pretty; }
.steps-sticky{ position:sticky; top:120px; height:min(560px,72vh); }
.steppane{ position:absolute; inset:0; opacity:0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; border-radius:14px; background: rgba(9,26,26,.7); border:1px solid rgba(167,237,192,.16); padding:34px; display:flex; flex-direction:column; justify-content:center; pointer-events:none; }
.steppane.is-active{ opacity:1; transform:none; pointer-events:auto; }

/* Reduced-motion / no-JS fallbacks for scroll-driven modules */
@media (prefers-reduced-motion: reduce){
  .step{ min-height:auto; padding:24px 0 24px 26px; }
  .step h3,.step__num{ color:#fff; }
  .steps-sticky{ position:static; height:auto; display:flex; flex-direction:column; gap:16px; margin-top:20px; }
  .steppane{ position:static; opacity:1; transform:none; }
  .stack__layer{ transition:none; }
}

/* ---- UBO hero run console ------------------------------------------------ */
.run{ border-radius:14px; background: linear-gradient(165deg,#224440 0%,#1b3835 100%); border:1px solid rgba(167,237,192,.22); box-shadow:0 30px 70px rgba(0,0,0,.28); overflow:hidden; }
.run__head{ display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid rgba(255,255,255,.08); }
.run__head .ic{ color: var(--tds-accent); font-size:12px; }
.run__title{ font-size:13px; font-weight:600; color:#fff; }
.run__pill{ margin-left:auto; display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:9999px; background: rgba(167,237,192,.14); color: var(--tds-accent); font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; }
.run__dot{ width:5px; height:5px; border-radius:50%; background: currentColor; }
.run__dot.is-pulsing{ animation: runPulse 1s ease-in-out infinite; }
@keyframes runPulse{ 0%,100%{ opacity:1; } 50%{ opacity:.3; } }
.run__subject{ padding:18px 18px 16px; border-bottom:1px solid rgba(255,255,255,.07); }
.run__k{ font-size:11px; letter-spacing:.12em; text-transform:uppercase; color: rgba(255,255,255,.44); }
.run__name{ margin-top:6px; font-family: var(--font-brand); font-size:19px; font-weight:500; color:#fff; }
.run__meta{ margin-top:4px; font-size:13px; color: rgba(255,255,255,.5); }
.run__logs{ padding:16px 18px; display:flex; flex-direction:column; gap:11px; }
.run__log{ display:flex; gap:11px; align-items:flex-start; font-size:13px; color: rgba(255,255,255,.78); opacity:0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.run__log .ic{ color: var(--tds-accent); font-size:11px; margin-top:3px; }
.run__log b{ color:#fff; font-weight:500; }
.run__ubos{ padding:0 18px 18px; display:flex; flex-direction:column; gap:10px; }
.ubo-row{ display:flex; align-items:center; gap:13px; padding:13px 14px; border-radius:10px; background: rgba(167,237,192,.07); border:1px solid rgba(167,237,192,.2); opacity:0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.ubo-row__av{ flex:none; width:34px; height:34px; border-radius:50%; background: rgba(167,237,192,.16); color: var(--tds-accent); display:grid; place-items:center; font-size:12px; font-weight:700; }
.ubo-row__main{ flex:1; min-width:0; }
.ubo-row__name{ font-size:14px; font-weight:600; color:#fff; }
.ubo-row__tags{ margin-top:3px; display:flex; flex-wrap:wrap; gap:6px; }
.ubo-row__tag{ padding:2px 7px; border-radius:4px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.62); font-size:10.5px; }
.ubo-row__pct{ text-align:right; flex:none; }
.ubo-row__pctv{ font-family: var(--font-brand); font-size:19px; font-weight:600; color: var(--tds-accent); line-height:1; }
.ubo-row__pctl{ font-size:10.5px; color: rgba(255,255,255,.46); margin-top:4px; }
.run__summary{ display:flex; align-items:center; gap:10px; padding:13px 18px; border-top:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); font-size:12.5px; color: rgba(255,255,255,.62); opacity:0; transition: opacity .5s ease; }
.run__summary .ic{ color: var(--tds-accent); font-size:11px; }
.run__log.is-in,.ubo-row.is-in,.run__summary.is-in{ opacity:1; transform:none; }
.run__cap{ margin-top:12px; text-align:center; font-size:11.5px; color: rgba(255,255,255,.34); }
@media (prefers-reduced-motion: reduce){
  .run__log,.ubo-row,.run__summary{ opacity:1 !important; transform:none !important; }
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width:960px){
  .hero__grid,.sechead,.stack,.steps-grid,.kya-split,.ubo-feature{ grid-template-columns:1fr !important; gap:40px; }
  .ubo-feature{ gap:0 !important; }
  .grid-3,.grid-4{ grid-template-columns:1fr 1fr; }
  .who-grid,.tier-grid{ grid-template-columns:1fr !important; }
  .tx-note{ grid-template-columns:1fr !important; gap:26px; padding:28px 24px; }
  .who-grid > div{ border-right:0 !important; border-bottom:1px solid var(--line); padding:28px 0 !important; }
  .how-grid{ grid-template-columns:1fr !important; }
  .statbar__in{ justify-content:flex-start; }
  .stack__stage{ height:320px; }
  .steps-sticky{ position:static; height:auto; display:flex; flex-direction:column; gap:16px; }
  .steppane{ position:static; opacity:1; transform:none; }
  .step{ min-height:auto; padding:22px 0 22px 26px; }
  .step h3,.step__num{ color:#fff; }
}
@media (max-width:640px){
  .wrap{ padding:0 20px; }
  .sec{ padding:80px 0; }
  .hero{ padding:108px 0 64px; }
  .grid-3,.grid-4{ grid-template-columns:1fr; }
  .nav{ display:none; }
}
