/*
 * light.css: the light theme for the landing page and the signed-in app. White ground, deep-navy
 * headlines, one electric blue. Loaded last. The older enterprise markup stays in the page (the
 * app references it) but is hidden here.
 */

:root {
  --bg: #ffffff;
  --wash: #f4f8ff;
  --ink: #06152e;        /* deep navy headings */
  --body: #3b485f;       /* solid body */
  --muted: #5a6a85;      /* secondary */
  --blue: #155eef;
  --blue-deep: #0f46c2;
  --cyan: #0a9fd8;
  --line: #e6ecf6;
  --line-2: #d6deed;
  --card: #ffffff;
  --navy-panel: #06152e;
  --wrap: 1240px;
  --gutter: clamp(22px, 5vw, 48px);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

html, body { background: var(--bg); }
.en { background: var(--bg) !important; color: var(--body); font-family: 'Sora', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; letter-spacing: -.004em; }
.en :where(h1, h2, h3) { color: var(--ink); font-family: 'Sora', system-ui, sans-serif; }

#view-signin .en-hero-bed,
#view-signin .wz-marquee,
#view-signin .en-sec,
#view-signin .en-foot,
#view-signin .en-hero-tags,
#marketing-top { display: none !important; }
body:has(#view-signin:not([hidden])) header.top { display: none !important; }

.qv-label { margin: 0; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.en :where(.qv-value h2, .qv-how h2, .qv-uses h2, .qv-sec h2, .qv-veyns h2, .qv-final h2, .qv-status h2) {
  margin: 16px 0 0; font-size: clamp(27px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.026em; font-weight: 600;
}
.qv-cap-item h3, .qv-use h3, .qv-sec-item h3, .qv-steps h3 { font-weight: 600 !important; }

/* ---------------------------------------------------------------- buttons */
.qv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 10px; white-space: nowrap;
  font: 600 15px/1 'Sora', system-ui, sans-serif; letter-spacing: -.01em; cursor: pointer; border: 1px solid transparent; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.qv-btn-ico { width: 19px; height: 19px; flex: none; }
.qv-btn.lg { height: 58px; padding: 0 34px; font-size: 16px; }
.qv-btn.primary { background: linear-gradient(180deg, #2f6ef4, var(--blue)); color: #fff; box-shadow: 0 12px 30px -12px rgba(21, 94, 239, .7), inset 0 1px 0 rgba(255, 255, 255, .22); }
.qv-btn.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(21, 94, 239, .8), inset 0 1px 0 rgba(255, 255, 255, .22); }
.qv-btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: 0 2px 10px -6px rgba(13, 30, 70, .25); }
.qv-btn.ghost:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.qv-btn:disabled { opacity: .55; cursor: default; }
#signin-browser { display: none !important; }

/* ---------------------------------------------------------------- nav */
.qv-nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .8); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.qv-nav-in { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 13px var(--gutter); display: flex; align-items: center; gap: 24px; }
.qv-brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
/* The PalmGuard lockup is wide, so it runs taller than the bar's padding allows; the negative margin keeps the bar 70px. */
.qv-brand-logo { height: 68px; width: auto; display: block; margin: -12px 0; }
@media (max-width: 600px) { .qv-brand-logo { height: 54px; margin: -6px 0; } }
.qv-links { display: flex; gap: 28px; margin-left: auto; }
.qv-links a { color: var(--body); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .15s var(--ease); }
.qv-links a:hover { color: var(--ink); }
.qv-demo { margin-left: 8px; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 20px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 12px 26px -14px rgba(21, 94, 239, .8); transition: transform .18s var(--ease); }
.qv-demo:hover { transform: translateY(-1px); }
.qv-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.qv-burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease); }
/* open, the bars cross into a close mark; their centres are 7px apart, so each moves 3.5px */
.qv-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.qv-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.qv-menu { display: none; }

/* ---------------------------------------------------------------- hero */
#view-signin .en-hero {
  position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; overflow: hidden;
  padding: clamp(72px, 10vh, 140px) 0 clamp(48px, 7vh, 96px);
  background:
    radial-gradient(50% 62% at 82% 44%, rgba(21, 94, 239, .10), transparent 72%),
    linear-gradient(180deg, #fbfcff, var(--bg) 42%);
}
/* a faint institutional grid, masked behind the scanner */
#view-signin .en-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(21, 94, 239, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 94, 239, .05) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(66% 68% at 80% 46%, #000, transparent 76%);
  mask-image: radial-gradient(66% 68% at 80% 46%, #000, transparent 76%);
}
.qv-hero { position: relative; z-index: 2; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.qv-hero-text { max-width: 560px; position: relative; z-index: 2; }

/* ----- hero scene: the keyed palm + scan device, bled off the right edge of the hero ----- */
.qv-hero-art { position: absolute; top: 0; bottom: 0; left: 44%; right: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: flex-end; pointer-events: none; }
.qv-hero-art::before { content: ""; position: absolute; z-index: 0; left: 52%; top: 50%; width: 82%; height: 84%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(54, 207, 255, .32), rgba(21, 94, 239, .1) 46%, transparent 72%); animation: qv-glow 3.4s ease-in-out infinite; }
.qv-hero-art::after { content: ""; position: absolute; z-index: 1; left: 51%; top: 66%; width: 28%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle, rgba(130, 215, 255, .55), transparent 64%); animation: qv-ring 2.2s ease-in-out infinite; }
.qv-waves, .qv-aurora, .qv-splash { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.qv-hero-imgwrap { position: relative; z-index: 2; width: 100%; max-width: none; display: block; margin-top: clamp(24px, 5vh, 70px); }
.qv-hero-img { position: relative; z-index: 1; width: 100%; height: auto; display: block; }
.qv-hero-mark { position: absolute; z-index: 2; left: 50%; top: 72%; width: 8.5%; transform: translate(-50%, -50%); opacity: .95; filter: drop-shadow(0 0 9px rgba(90, 190, 255, .85)); animation: qv-mark-pulse 2.2s ease-in-out infinite; }
@keyframes qv-ring { 0%, 100% { opacity: .35; transform: translate(-50%, -50%) scale(.86); } 50% { opacity: .9; transform: translate(-50%, -50%) scale(1.18); } }
@keyframes qv-mark-pulse { 0%, 100% { opacity: .78; filter: drop-shadow(0 0 6px rgba(90, 190, 255, .6)); } 50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(90, 190, 255, .95)); } }

/* the palm's Veyns core (also used in the Veyns-layer section): a pulse with light running out through the veins */
.qv-palm-wrap { position: relative; z-index: 3; width: 100%; display: block; }
.qv-palm { position: relative; z-index: 1; width: 100%; height: auto; display: block; animation: qv-pulse 2.2s ease-in-out infinite; }
.qv-core { position: absolute; z-index: 2; left: 50%; top: 52%; width: 24%; height: 24%; transform: translate(-50%, -50%); pointer-events: none; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(170, 232, 255, .95), rgba(60, 160, 255, .32) 42%, transparent 66%);
  animation: qv-core-pulse 2.2s ease-in-out infinite; }
.qv-core::before { content: ""; position: absolute; left: 50%; top: 50%; width: 64%; height: 64%; transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(130, 210, 255, .6), transparent 70%);
  animation: qv-flow 2.2s ease-out infinite; }

@keyframes qv-palm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes qv-pulse { 0%, 100% { filter: brightness(1) saturate(1); } 50% { filter: brightness(1.14) saturate(1.22); } }
@keyframes qv-glow { 0%, 100% { opacity: .42; transform: translate(-50%, -50%) scale(.9); } 50% { opacity: .78; transform: translate(-50%, -50%) scale(1.12); } }
@keyframes qv-core-pulse { 0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(.86); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes qv-flow { 0% { opacity: .85; transform: translate(-50%, -50%) scale(.4); } 70% { opacity: .3; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(6); } }

/* hero entrance: transform only, so the content is visible even if the animation never runs */
@media (prefers-reduced-motion: no-preference) {
  .qv-hero-text > * { animation: qv-rise .72s cubic-bezier(.22, .61, .28, 1) both; }
  .qv-hero-text > *:nth-child(1) { animation-delay: .04s; }
  .qv-hero-text > *:nth-child(2) { animation-delay: .12s; }
  .qv-hero-text > *:nth-child(3) { animation-delay: .20s; }
  .qv-hero-text > *:nth-child(4) { animation-delay: .28s; }
  .qv-hero-text > *:nth-child(5) { animation-delay: .36s; }
  .qv-hero-text > *:nth-child(6) { animation-delay: .44s; }
  .qv-hero-art { animation: qv-art-in 1.15s cubic-bezier(.22, .61, .28, 1) both; }
}
@keyframes qv-rise { from { transform: translateY(16px); } to { transform: none; } }
@keyframes qv-art-in { from { transform: translate(96px, -66px); } to { transform: translate(0, 0); } }

@media (prefers-reduced-motion: reduce) {
  .qv-hero-img, .qv-palm, .qv-palm-wrap, .qv-hero-art, .qv-hero-art::before, .qv-core, .qv-core::before { animation: none; }
}

.en-hero .qv-h1 { margin: 0; color: var(--ink); font-size: clamp(32px, 3.6vw, 54px); line-height: 1.07; letter-spacing: -.032em; font-weight: 600; }
.en-hero .qv-h1 span { display: block; }
@media (min-width: 900px) { .en-hero .qv-h1 span { white-space: nowrap; } }
.en-hero .qv-h1 .qv-accent { color: var(--blue); }
.qv-powered { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.qv-powered img { height: 20px; width: auto; display: block; }
.qv-powered-sub { margin: 8px 0 0; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.qv-hero-desc { margin: 24px 0 0; max-width: 48ch; color: var(--body); font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.62; }
.qv-cta { display: flex; gap: 12px; margin: 34px 0 0; flex-wrap: wrap; }
.vx-error { margin: 14px 0 0; min-height: 1em; color: #d4334a; font-size: 14px; }

/* ---------------------------------------------------------------- capability strip: deep-blue WebGL band */
.qv-cap { position: relative; overflow: hidden; border: 0; background: radial-gradient(120% 120% at 50% -10%, #11347a 0%, #0a1f52 45%, #050f2c 100%); }
.qv-cap::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(120, 170, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 170, 255, .08) 1px, transparent 1px); background-size: 54px 54px; -webkit-mask-image: radial-gradient(120% 100% at 50% 50%, #000, transparent 90%); mask-image: radial-gradient(120% 100% at 50% 50%, #000, transparent 90%); }
.qv-cap-in { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 6vh, 72px) var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.qv-cap-item { padding: 4px clamp(18px, 2.2vw, 34px); border-left: 1px solid rgba(120, 170, 255, .16); }
.qv-cap-item:first-child { border-left: 0; padding-left: 0; }
.qv-cap-ico { display: inline-flex; width: 86px; height: 86px; align-items: center; justify-content: center; border-radius: 8px; background: linear-gradient(180deg, rgba(21, 94, 239, .1), rgba(21, 94, 239, .035)); border: 1px solid var(--line-2); color: var(--blue); }
.qv-cap-ico .cx-icon { width: 52px; height: 52px; }
/* qufi.network icon system: strokes draw in, nodes arrive, the lit one pulses */
.qicon { display: inline-flex; color: var(--blue); position: relative; z-index: 1; }
/* animated node-field behind each icon mark (qvfx.js) */
.qv-cap-ico, .qv-use-ico, .qv-sec-ico, .qv-step-ico { position: relative; overflow: hidden; }
.qv-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cx-icon { overflow: visible; display: block; }
.cx-line { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 420; stroke-dashoffset: 420; opacity: 0; transition: stroke-dashoffset .95s cubic-bezier(.22, .61, .28, 1), opacity .2s; }
.cx-dot { fill: currentColor; transform: scale(0); opacity: 0; transform-box: fill-box; transform-origin: center; transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), opacity .25s; }
.cx-drawn .cx-line { stroke-dashoffset: 0; opacity: 1; }
.cx-drawn .cx-dot { transform: scale(1); opacity: 1; }
.cx-drawn .cx-pulse { animation: cx-pulse 2.6s ease-in-out 1s infinite; }
@keyframes cx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .cx-line { stroke-dashoffset: 0; opacity: 1; transition: none; } .cx-dot { transform: scale(1); opacity: 1; } .cx-pulse { animation: none; } }
.qv-cap-fx { display: block; width: 100%; height: clamp(120px, 12vw, 164px); margin-bottom: 14px; }
.qv-use-fx { display: block; width: 100%; height: 132px; margin-bottom: 22px; }
.qv-sec-fx { display: block; width: 100%; height: 104px; margin-bottom: 4px; }
.qv-step-fx { display: inline-block; width: 54px; height: 54px; vertical-align: middle; }
.qv-glx { display: block; width: 100%; height: 100%; }
.qv-cap-item h3 { margin: 0; font-size: 17px; font-weight: 700 !important; letter-spacing: -.01em; color: #fff; }
.qv-cap-item p { margin: 9px 0 0; color: rgba(208, 223, 255, .74); font-size: 14px; line-height: 1.55; }
.qv-cap-item { transition: transform .2s var(--ease); }
.qv-cap-item:hover { transform: translateY(-3px); }

/* icon tiles glow in a slow, staggered loop */
.qv-cap-ico, .qv-use-ico, .qv-sec-ico, .qv-step-ico, .qv-pill-ico { animation: qv-ico-glow 4.6s ease-in-out infinite; }
.qv-cap-item:nth-child(2) .qv-cap-ico, .qv-use:nth-child(2) .qv-use-ico, .qv-sec-item:nth-child(2) .qv-sec-ico { animation-delay: .55s; }
.qv-cap-item:nth-child(3) .qv-cap-ico, .qv-use:nth-child(3) .qv-use-ico, .qv-sec-item:nth-child(3) .qv-sec-ico { animation-delay: 1.1s; }
.qv-cap-item:nth-child(4) .qv-cap-ico, .qv-use:nth-child(4) .qv-use-ico, .qv-sec-item:nth-child(4) .qv-sec-ico { animation-delay: 1.65s; }
.qv-steps li:nth-child(2) .qv-step-ico { animation-delay: .4s; }
.qv-steps li:nth-child(3) .qv-step-ico { animation-delay: .8s; }
.qv-steps li:nth-child(4) .qv-step-ico { animation-delay: 1.2s; }
.qv-steps li:nth-child(5) .qv-step-ico { animation-delay: 1.6s; }
@keyframes qv-ico-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(21, 94, 239, 0); border-color: var(--line-2); } 50% { box-shadow: 0 10px 24px -10px rgba(21, 94, 239, .4); border-color: rgba(21, 94, 239, .34); } }

/* on card hover the mark springs, nodes pulse and strokes glow */
.qicon .cx-icon { transition: transform .4s cubic-bezier(.3, 1.45, .5, 1); }
.qv-cap-item:hover .cx-icon,
.qv-use:hover .cx-icon,
.qv-sec-item:hover .cx-icon,
.qv-steps li:hover .cx-icon,
.qv-pillars li:hover .cx-icon { transform: scale(1.16) rotate(-4deg); }
.qv-cap-item:hover .cx-dot,
.qv-use:hover .cx-dot,
.qv-sec-item:hover .cx-dot,
.qv-steps li:hover .cx-dot,
.qv-pillars li:hover .cx-dot { animation: cx-pulse .9s ease-in-out infinite; }
.qv-cap-item:hover .cx-line,
.qv-use:hover .cx-line,
.qv-sec-item:hover .cx-line,
.qv-steps li:hover .cx-line,
.qv-pillars li:hover .cx-line { filter: drop-shadow(0 0 4px rgba(21, 94, 239, .55)); }
.qv-cap-item:hover .qv-cap-ico,
.qv-use:hover .qv-use-ico,
.qv-sec-item:hover .qv-sec-ico,
.qv-steps li:hover .qv-step-ico { box-shadow: 0 14px 30px -8px rgba(21, 94, 239, .5); border-color: rgba(21, 94, 239, .5); }

.qv-sec-item { transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.qv-sec-item:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 26px 50px -32px rgba(13, 30, 70, .3); }
.qv-use { transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.qv-use:hover { transform: translateY(-4px); border-color: rgba(21, 94, 239, .3); box-shadow: 0 26px 50px -32px rgba(13, 30, 70, .3); }
.qv-steps li { transition: transform .2s var(--ease); }
@media (prefers-reduced-motion: reduce) { .qv-cap-ico, .qv-use-ico, .qv-sec-ico, .qv-step-ico, .qv-pill-ico, .qicon .cx-icon { animation: none !important; transition: none !important; } }

/* ---------------------------------------------------------------- shared sections */
.qv-value, .qv-how, .qv-veyns, .qv-uses, .qv-sec, .qv-status, .qv-final { padding: clamp(66px, 9vh, 116px) var(--gutter); }
.qv-value-in, .qv-how-in, .qv-veyns-in, .qv-uses-in, .qv-sec-in, .qv-status-in, .qv-final-in { max-width: var(--wrap); margin: 0 auto; }

/* value proposition */
.qv-value { text-align: center; border-top: 1px solid var(--line); background: var(--bg); }
.qv-value-lead { margin: 22px auto 0; max-width: 62ch; color: var(--body); font-size: clamp(15.5px, 1.3vw, 18px); line-height: 1.6; }
.qv-pillars { list-style: none; margin: 40px 0 0; padding: 0; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.qv-pillars li { display: inline-flex; align-items: center; padding: 11px 24px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; background: var(--wash); transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.qv-pillars li:hover { transform: translateY(-2px); border-color: rgba(21, 94, 239, .4); box-shadow: 0 14px 30px -18px rgba(21, 94, 239, .6); }
.qv-pill-ico { display: inline-flex; width: 34px; height: 34px; flex: none; align-items: center; justify-content: center; border-radius: 6px; background: linear-gradient(180deg, rgba(21, 94, 239, .12), rgba(21, 94, 239, .04)); border: 1px solid var(--line-2); color: var(--blue); }
.qv-pill-ico .cx-icon { width: 20px; height: 20px; }

/* how it works */
.qv-how { background: var(--wash); border-top: 1px solid var(--line); }
.qv-steps { list-style: none; margin: clamp(34px, 5vh, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.qv-steps li { position: relative; padding: 0 clamp(14px, 1.6vw, 26px) 0 0; }
.qv-steps li::before { content: ""; position: absolute; left: 70px; right: 10px; top: 28px; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.qv-steps li:last-child::before { display: none; }
.qv-step-head { display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.qv-step-ico { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); color: var(--blue); }
.qv-step-ico .cx-icon { width: 36px; height: 36px; }
.qv-step-n { color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.qv-steps h3 { margin: 18px 0 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.qv-steps p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* veyns layer */
.qv-veyns { position: relative; background: var(--bg); border-top: 1px solid var(--line); overflow: hidden; padding-bottom: 0; }
.qv-veyns-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: end; }
.qv-veyns-text { align-self: center; padding-bottom: clamp(56px, 9vh, 104px); }
.qv-veyns-text > p { margin: 20px 0 0; max-width: 46ch; color: var(--body); font-size: 16px; line-height: 1.62; }
.qv-veyns .qv-powered { margin-top: 26px; }
.qv-veyns-art { position: relative; align-self: end; min-height: 480px; display: flex; align-items: flex-end; justify-content: center; }
.qv-veyns-art::before { content: ""; position: absolute; z-index: 0; left: 50%; top: 40%; width: 86%; height: 86%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(54, 207, 255, .3), rgba(21, 94, 239, .08) 46%, transparent 72%); animation: qv-glow 4s ease-in-out infinite; }
.qv-veyns-gl { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; }
.qv-veyns-wrap { position: relative; z-index: 3; width: 100%; max-width: 560px; transform: translateY(70px); transition: transform 1.1s cubic-bezier(.22, .61, .28, 1); }
.qv-veyns-wrap.in { transform: translateY(0); }
.qv-veyns-palm { position: relative; z-index: 1; width: 100%; max-width: none; height: auto; display: block; }
@media (prefers-reduced-motion: reduce) { .qv-veyns-wrap { transform: none; } }

/* use cases */
.qv-uses { border-top: 1px solid var(--line); background: var(--wash); }
.qv-use-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: clamp(34px, 5vh, 50px) 0 0; }
.qv-use { position: relative; padding: clamp(28px, 2.8vw, 42px); border-radius: 6px; border: 1px solid var(--line); background: var(--card); overflow: hidden; transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.qv-use::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.qv-use:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 30px 56px -36px rgba(8, 24, 60, .4); }
.qv-use:hover::after { transform: scaleX(1); }
.qv-use-ico { display: inline-flex; width: 98px; height: 98px; align-items: center; justify-content: center; border-radius: 8px; background: linear-gradient(180deg, rgba(21, 94, 239, .1), rgba(21, 94, 239, .035)); border: 1px solid var(--line-2); color: var(--blue); margin-bottom: 26px; }
.qv-use-ico .cx-icon { width: 58px; height: 58px; }
.qv-use h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.qv-use p { margin: 12px 0 0; color: var(--body); font-size: 15px; line-height: 1.58; }

/* security */
.qv-sec { border-top: 1px solid var(--line); background: var(--bg); }
.qv-sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: clamp(34px, 5vh, 50px) 0 0; }
.qv-sec-item { padding: clamp(24px, 2.4vw, 34px); border-radius: 6px; border: 1px solid var(--line); background: var(--card); }
.qv-sec-ico { display: inline-flex; width: 78px; height: 78px; align-items: center; justify-content: center; border-radius: 8px; background: linear-gradient(180deg, rgba(21, 94, 239, .1), rgba(21, 94, 239, .035)); border: 1px solid var(--line-2); color: var(--blue); }
.qv-sec-ico .cx-icon { width: 46px; height: 46px; }
.qv-sec-n { display: block; margin-top: 16px; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.qv-sec-item h3 { margin: 14px 0 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.qv-sec-item p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* status */
.qv-status { border-top: 1px solid var(--line); background: var(--wash); }
.qv-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: clamp(28px, 4vh, 44px) 0 0; }
.qv-status-item { padding: clamp(22px, 2.2vw, 30px); border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.qv-status-item span { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.qv-status-item.built span { background: rgba(10, 159, 216, .12); color: var(--cyan); }
.qv-status-item.progress span { background: rgba(21, 94, 239, .1); color: var(--blue); }
.qv-status-item.next span { background: #eef1f6; color: var(--muted); }
.qv-status-item p { margin: 14px 0 0; color: var(--body); font-size: 15px; line-height: 1.55; }

/* final cta: full-bleed deep-navy banner, WebGL across the whole section */
.qv-final { position: relative; overflow: hidden; border-top: 0; background: radial-gradient(90% 130% at 50% 0%, #103066, #050f22 72%); padding: clamp(84px, 13vh, 160px) var(--gutter); }
.qv-final-gl { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: .95; }
.qv-final-in { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; text-align: center; }
.qv-final h2 { color: #fff; font-size: clamp(30px, 4.4vw, 54px); }
.qv-final p { margin: 20px auto 0; max-width: 56ch; color: #c6d2e8; font-size: clamp(15.5px, 1.3vw, 18px); line-height: 1.6; }
.qv-final .qv-btn { margin-top: 32px; }

/* footer */
.qv-footer { background: var(--bg); border-top: 1px solid var(--line); padding: clamp(44px, 6vh, 72px) var(--gutter) clamp(32px, 4vh, 48px); }
.qv-footer-in { max-width: var(--wrap); margin: 0 auto; }
.qv-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.qv-footer-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.qv-footer-logo { height: 64px; width: auto; }
.qv-footer-brand p { margin: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.qv-footer-veyns { height: 16px; width: auto; }
.qv-footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.qv-footer-nav a { color: var(--body); font-size: 14px; text-decoration: none; }
.qv-footer-nav a:hover { color: var(--ink); }
.qv-footer-note { margin: 24px 0 0; max-width: 72ch; color: var(--muted); font-size: 13px; line-height: 1.6; }
.qv-footer-legal { margin: 18px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.qv-footer-legal a { color: inherit; text-decoration: none; }
.qv-footer-legal a:hover { color: var(--ink); }

/* request-a-demo messaging modal */
.qd-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; }
.qd-modal[hidden] { display: none; }
.qd-backdrop { position: absolute; inset: 0; background: rgba(6, 15, 34, .5); backdrop-filter: blur(6px); animation: qd-fade .2s ease; }
.qd-card { position: relative; width: min(440px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 40px 90px -30px rgba(8, 24, 60, .55); overflow: hidden; animation: qd-pop .3s cubic-bezier(.22, .8, .3, 1); }
.qd-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f7faff, #fff); }
.qd-ava { width: 40px; height: 40px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #3aa0ff, #155eef 70%); box-shadow: 0 0 0 3px rgba(21, 94, 239, .12); }
.qd-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.qd-sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.qd-dot { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: #16c784; box-shadow: 0 0 0 4px rgba(22, 199, 132, .16); }
.qd-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px; }
.qd-x:hover { background: #f0f3f8; color: var(--ink); }
.qd-thread { padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.qd-msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.qd-in { align-self: flex-start; background: #f1f4f9; color: var(--ink); border-bottom-left-radius: 4px; }
.qd-out { align-self: flex-end; background: linear-gradient(180deg, #2f7dff, #155eef); color: #fff; border-bottom-right-radius: 4px; }
.qd-form { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.qd-row { display: flex; gap: 10px; }
.qd-field { width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; }
.qd-field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 94, 239, .14); }
.qd-text { resize: vertical; min-height: 64px; }
.qd-send { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 14px 28px -14px rgba(21, 94, 239, .8); transition: transform .15s ease; }
.qd-send:hover { transform: translateY(-1px); }
.qd-note { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
@keyframes qd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qd-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .qd-row { flex-direction: column; } }

/* responsive */
@media (max-width: 960px) {
  .qv-links, .qv-demo { display: none; }
  /* the hidden links carried margin-left:auto; the burger takes it to stay top right */
  .qv-burger { display: flex; margin-left: auto; }
  .qv-menu:not([hidden]) {
    display: grid; position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100dvh - 72px); overflow-y: auto;
    padding: 6px var(--gutter) 22px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 28px 44px -28px rgba(6, 21, 46, .28);
  }
  .qv-menu a { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; }
  .qv-menu a:active { color: var(--blue); }
  .qv-menu-demo { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; margin-top: 18px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
  #view-signin .en-hero { display: block; min-height: auto; padding: 0 0 clamp(40px, 8vh, 64px); text-align: center; }
  #view-signin .en-hero::after { -webkit-mask-image: radial-gradient(90% 50% at 50% 24%, #000, transparent 78%); mask-image: radial-gradient(90% 50% at 50% 24%, #000, transparent 78%); }
  /* the arm enters from the top right, under the header, as on desktop */
  .qv-hero-art { position: static; width: min(100%, 560px); max-width: none; margin: 0 0 6px auto; display: block; }
  .qv-hero-imgwrap { margin-top: 0; }
  .qv-hero-gl { opacity: .5; }
  .qv-hero-img { max-height: none; }
  .qv-hero-text { max-width: none; text-align: center; margin: 0 auto; }
  .qv-powered, .qv-cta { justify-content: center; }
  .qv-cap-in { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .qv-cap-item { border-left: 0; padding-left: clamp(18px, 2.2vw, 34px); }
  .qv-cap-item:nth-child(odd) { padding-left: 0; }
  .qv-steps { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .qv-steps li::before { display: none; }
  .qv-veyns-in { grid-template-columns: 1fr; }
  .qv-veyns-art { order: -1; min-height: 260px; }
  .qv-sec-grid { grid-template-columns: 1fr 1fr; }
  .qv-status-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .qv-cap-in { grid-template-columns: 1fr; }
  .qv-cap-item, .qv-cap-item:nth-child(odd) { padding-left: 0; }
  .qv-steps, .qv-use-grid, .qv-sec-grid { grid-template-columns: 1fr; }
  /* centre every card on phones */
  .qv-cap-item, .qv-use, .qv-sec-item, .qv-steps li { text-align: center; }
  .qv-step-head { justify-content: center; }
  .qv-steps li::before { display: none; }
  .qv-value h2, .qv-how .qv-label, .qv-sec .qv-label, .qv-uses .qv-label { text-align: center; }
}

/* ---------------------------------------------------------------- wallet app: light theme
   style.css is dark and fully tokenised; redefining its tokens on the app view containers
   recolours the wallet without touching the marketing views. */
#view-loading, #view-setup, #view-create, #view-wallet, #approval, #receipt {
  --page: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f6fc;
  --surface-3: #f8fafe;
  --hair: rgba(13, 30, 70, .1);
  --hair-strong: rgba(13, 30, 70, .2);
  --text: #06152e;
  --text-2: #3b485f;
  --muted: #5a6a85;
  --faint: #8893a6;
  --brand: #155eef;
  --brand-hover: #1150d4;
  --brand-press: #0f49bf;
  --brand-tint: rgba(21, 94, 239, .1);
  --brand-tint-2: rgba(21, 94, 239, .16);
  --ring: rgba(21, 94, 239, .4);
  --lift-1: 0 1px 2px rgba(13, 30, 70, .06);
  --lift-2: 0 12px 30px -14px rgba(13, 30, 70, .2);
  --lift-3: 0 30px 70px -26px rgba(13, 30, 70, .24);
  --glow: 0 0 0 1px rgba(21, 94, 239, .18), 0 10px 26px -10px rgba(21, 94, 239, .3);
  --sans: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
}
/* danger/ok tints that read on white */
#view-setup, #view-create, #view-wallet, #approval, #receipt { --danger: #d4334a; --ok: #0c8a52; }

/* ---------------------------------------------------------------- wallet: calmer surfaces
   One accent and more whitespace, so the signed-in app matches the site. Scoped to the app shell. */
#view-wallet.shell { gap: 0; background: #fff; }
/* sidebar */
#view-wallet .side { background: #fbfcfe; border-right: 1px solid var(--hair); padding: 26px 18px; }
#view-wallet .side-label { color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#view-wallet .nav { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin: 2px 0; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: 600 14.5px var(--sans); cursor: pointer; transition: background .15s, color .15s; }
#view-wallet .nav svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; }
#view-wallet .nav:hover { background: #eef2fb; color: var(--text); }
#view-wallet .nav.on, #view-wallet .nav[aria-current="page"], #view-wallet .nav.active { background: var(--brand-tint); color: var(--brand); }
#view-wallet .account-list .account, #view-wallet .account-list > button { border-radius: 10px; }
/* panes */
#view-wallet .panes { padding: clamp(24px, 3vw, 44px); max-width: 1000px; }
#view-wallet .pane-title { font: 700 clamp(24px, 2.6vw, 34px)/1.1 var(--sans); letter-spacing: -.02em; }
#view-wallet .eyebrow { color: var(--faint); font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
/* cards: white, one hairline, soft lift, no glow */
#view-wallet .card { background: #fff; border: 1px solid var(--hair); border-radius: 16px; box-shadow: 0 1px 2px rgba(13,30,70,.04); padding: clamp(20px, 2.2vw, 28px); }
#view-wallet .card.total .amount { font: 700 clamp(30px, 3.4vw, 44px)/1 var(--sans); letter-spacing: -.02em; }
#view-wallet .card.total .amount .unit { font-size: .42em; font-weight: 600; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
/* inputs and buttons */
#view-wallet input, #view-wallet .field, #view-create input, #view-setup input { border-radius: 12px; border: 1px solid var(--hair-strong); background: #fff; }
#view-wallet input:focus, #view-create input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); outline: none; }
#view-wallet .btn.brand, #view-create .btn.brand, #approval .btn.brand { border-radius: 12px; box-shadow: 0 10px 24px -12px rgba(21,94,239,.7); font-weight: 600; }
/* tabs row */
#view-wallet [role="tablist"], #view-wallet .tabs { gap: 4px; }

/* app header. It only shows in the signed-in app (display:none on the marketing view), so it's
   styled unconditionally; a :has() gate could miss a view and fall back to the dark base. */
header.top {
  background: rgba(255, 255, 255, .96) !important;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line) !important;
  color: var(--ink);
  display: block;
  padding: 0;
}
/* matches .shell (max-width 1340px, 28px padding) so the logo lines up with the sidebar */
header.top .top-in {
  max-width: 1340px;
  margin: 0 auto;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 860px) { header.top .top-in { padding: 11px 16px; } }
header.top .mark-quvault { height: 52px !important; width: auto; display: block; margin: -9px 0; }
header.top .who { display: inline-flex; align-items: center; gap: 12px; font-family: 'Sora', system-ui, sans-serif; }
header.top .link {
  font: 600 13px/1 'Sora', system-ui, sans-serif; color: var(--body);
  padding: 7px 12px; border-radius: 8px; border: 1px solid transparent;
  transition: color .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease);
}
header.top .link:hover { color: var(--ink); background: var(--wash); border-color: var(--line); }

/* ---------------------------------------------------------------- dashboard
   Scoped to #view-wallet so the marketing page is unaffected. */
#view-wallet .pane-head .eyebrow { color: var(--blue); letter-spacing: .18em; }
#view-wallet .pane-title { letter-spacing: -.032em; }

/* balance card: faint blue wash, hairline edge, soft depth */
#view-wallet .card.total {
  position: relative;
  padding: 26px 28px;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(21, 94, 239, .07), transparent 46%),
    linear-gradient(180deg, #ffffff, #fbfcff);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 22px 48px -34px rgba(13, 30, 70, .5);
}
#view-wallet .card.total::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, transparent, rgba(21, 94, 239, .55), transparent);
  opacity: .55;
}
#view-wallet .card.total .amount {
  color: var(--ink);
  letter-spacing: -.035em;
  font-size: clamp(32px, 4.2vw, 50px);
}
#view-wallet .card.total .amount .unit { color: var(--blue); opacity: .92; }
#view-wallet .card.total .total-head .eyebrow { color: var(--faint, #6b7890); text-transform: uppercase; letter-spacing: .09em; }
#view-wallet .chart-price { color: var(--ink); }

/* segmented range control (Day / Week / Month / 3M): white pill on a hairline track */
#view-wallet .ranges { background: #f3f6fc; border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
#view-wallet .ranges .chip.pick { color: var(--body); border-radius: 9px; font-weight: 600; }
#view-wallet .ranges .chip.pick:hover { color: var(--ink); }
#view-wallet .ranges .chip.pick.on {
  background: #fff; color: var(--blue-deep);
  box-shadow: 0 1px 2px rgba(13, 30, 70, .12), 0 0 0 1px var(--line);
}

#view-wallet .lane-head h2 { letter-spacing: -.02em; }

/* the palm vault's descriptor, shown with the chain lock: long, so it wraps */
#chain-note code { display: block; margin-top: 6px; word-break: break-all; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11.5px; color: var(--ink); }

/* the frozen vault: a red band across every pane until its signers unfreeze it */
.frozen-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; background: #fff1f1; border: 1px solid #f3b4b4; color: #7a1414; }
.frozen-banner[hidden] { display: none; }
.frozen-banner p { margin: 0; font-size: 14px; line-height: 1.5; }
.frozen-banner .btn { background: #b42318; color: #fff; border: 0; }

/* naming an address: two rows, so both fields keep a usable width in a half-width card */
.address-form { display: grid; grid-template-columns: 150px 1fr auto; grid-template-areas: "net addr addr" "name name save"; gap: 8px; align-items: center; }
#address-network { grid-area: net; }
#address-value { grid-area: addr; }
#address-name { grid-area: name; }
#address-save { grid-area: save; }
.address-form select, .address-form input { height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 9px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); min-width: 0; }
@media (max-width: 760px) { .address-form { grid-template-columns: 1fr; grid-template-areas: "net" "addr" "name" "save"; } }
.mono.wrap { word-break: break-all; }

/* recovery clock, replacing a signer, sending from a vault you sign for */
.warn-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff6e5; color: #8a5300; font-size: 13.5px; line-height: 1.5; }
.member-row.pick { cursor: pointer; }
.member-row.pick input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; margin: 0; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); margin: 4px 0; }
.check-row input { width: 16px; height: 16px; accent-color: var(--blue); margin: 0; }
.row.wrap { flex-wrap: wrap; }
#vault-tools a.btn { text-decoration: none; }

/* the inheritance sheet and the recovery door, inside the signed in app */
dialog.wide { width: min(780px, calc(100vw - 32px)); max-width: none; }
.heir-sheet { display: grid; gap: 14px; }
.heir-sheet h2 { margin: 0; }
.heir-logo { height: 30px; width: auto; display: block; }
.heir-grid { display: grid; grid-template-columns: 1fr 200px; gap: 16px; align-items: start; }
.heir-qr svg { width: 100%; height: auto; display: block; border: 1px solid #e2e8f4; border-radius: 8px; background: #fff; }
.heir-code { display: block; padding: 10px 12px; border-radius: 8px; background: #f3f6fd; color: #06152e; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.print-only { display: none !important; }
.heir-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: inherit; }
.ok-note { color: #067647; font-weight: 600; }
#door textarea { width: 100%; font: 13px/1.45 'IBM Plex Mono', ui-monospace, monospace; }
@media (max-width: 640px) {
  .heir-grid { grid-template-columns: 1fr; }
  .heir-qr { max-width: 220px; }
}
@media print {
  body.print-heir-sheet > *:not(#heir-sheet) { display: none !important; }
  body.print-heir-sheet #heir-sheet { position: static; inset: auto; margin: 0; width: auto; max-width: none; max-height: none; overflow: visible; border: 0; box-shadow: none; animation: none; color: #000; background: #fff; }
  body.print-heir-sheet #heir-sheet::backdrop { display: none; }
  body.print-heir-sheet .no-print { display: none !important; }
  body.print-heir-sheet #heir-sheet .print-only { display: block !important; }
  body.print-heir-sheet #heir-sheet, body.print-heir-sheet #heir-sheet * { color: #111 !important; border-color: #d5dbe8 !important; }
  body.print-heir-sheet #heir-sheet .sheet { overflow: visible; max-height: none; }
}

/* help */
.help .card + .grid-2, .help .grid-2 + .card { margin-top: 16px; }
.help .help-lead { margin-bottom: 16px; }
.help .card p, .help dd, .help li { margin: 0; line-height: 1.6; font-weight: 400; color: var(--text-2); }
.help .card-head h2 { margin: 0; }
.help-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.help-pair > div { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.help-pair h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--text); }
.help-steps { margin: 0; padding: 0; list-style: none; counter-reset: help-step; display: grid; gap: 14px; }
.help-steps li { counter-increment: help-step; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--text-2); line-height: 1.6; }
.help-steps li::before {
  content: counter(help-step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand); font-size: 13px; font-weight: 700; margin-top: 1px;
}
.help-steps b, .help-terms dt, .help .card-head h2, .help b { color: var(--text); font-weight: 700; }
.help-terms { margin: 0; display: grid; gap: 4px; }
.help-terms dt { margin-top: 10px; }
.help-terms dt:first-child { margin-top: 0; }
.help-terms dd { margin: 0; color: var(--text-2); line-height: 1.6; }
.help-glossary { grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); column-gap: 20px; row-gap: 10px; }
.help-glossary dt, .help-glossary dt:first-child { margin-top: 0; }
@media (max-width: 640px) { .help-glossary { grid-template-columns: minmax(0, 1fr); row-gap: 2px; } .help-glossary dt { margin-top: 10px; } }
.help-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--text-2); line-height: 1.6; }
.help-list li::marker { color: var(--brand); }
.help-ui { font-weight: 400; color: var(--brand); white-space: nowrap; }
@media (max-width: 480px) { .help-ui { white-space: normal; } }

/* ---------------------------------------------------------------- the Binance attack (case study) */
.pg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.pg-case { padding: clamp(66px, 9vh, 116px) var(--gutter); border-top: 1px solid var(--line); background: linear-gradient(180deg, #f5f8ff, #ffffff 60%); }
.pg-case-in { max-width: var(--wrap); margin: 0 auto; }
.en .pg-case h2 { margin: 16px 0 0; font-size: clamp(27px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.026em; font-weight: 600; }
.pg-accent { background: linear-gradient(90deg, #0b3d91, #1557ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-lead { margin: 22px 0 0; max-width: 70ch; color: var(--body); font-size: clamp(15.5px, 1.3vw, 18px); line-height: 1.6; }
.pg-heads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: clamp(34px, 5vh, 50px) 0 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pg-heads span:last-child { color: #1557ff; }
.pg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pg-step { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.pg-attack, .pg-block { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; align-content: start; padding: clamp(20px, 2.2vw, 28px); border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.pg-attack { background: #fffafa; border-color: #f3dede; }
.pg-block { border-color: rgba(21, 87, 255, .22); box-shadow: 0 18px 40px -30px rgba(11, 61, 145, .45); }
.pg-ico { grid-row: span 3; display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 10px; background: linear-gradient(180deg, rgba(21, 87, 255, .1), rgba(21, 87, 255, .03)); border: 1px solid rgba(21, 87, 255, .2); }
.pg-ico svg { width: 34px; height: 34px; }
.pg-ico-attack { color: #b42318; background: #fdeeee; border-color: #f3d2d2; }
.pg-when { margin: 0; color: #b42318; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pg-attack h3, .pg-block h3 { margin: 4px 0 0; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.pg-block h3 { margin-top: 0; color: #0b1b3a; }
.pg-attack p:not(.pg-when), .pg-block p { margin: 8px 0 0; color: var(--body); font-size: 14.5px; line-height: 1.55; }
.pg-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; }
.pg-result { padding: 22px 24px; border-radius: 8px; background: linear-gradient(135deg, #0b1b3a, #0b3d91 55%, #1557ff); color: #fff; box-shadow: 0 24px 50px -30px rgba(11, 61, 145, .8); }
.pg-result strong { display: block; font: 600 clamp(24px, 2.4vw, 32px)/1.1 'Sora', system-ui, sans-serif; letter-spacing: -.02em; }
.pg-result span { display: block; margin-top: 6px; color: rgba(255, 255, 255, .82); font-size: 14px; }
.pg-note { margin: 18px 0 0; max-width: 92ch; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
@media (max-width: 860px) {
  .pg-heads { display: none; }
  .pg-step { grid-template-columns: 1fr; gap: 0; }
  .pg-attack { border-radius: 8px 8px 0 0; border-bottom: 0; }
  .pg-block { border-radius: 0 0 8px 8px; }
  .pg-results { grid-template-columns: 1fr; }
}
.pg-link { display: inline-flex; align-items: center; gap: 8px; margin: 28px 0 0; color: #1557ff; font-size: 15px; font-weight: 600; text-decoration: none; }
.pg-link:hover { color: #0b3d91; }
.pg-link span { transition: transform .18s var(--ease); }
.pg-link:hover span { transform: translateX(3px); }
.pg-others { margin: clamp(48px, 7vh, 72px) 0 0; padding: clamp(28px, 3vw, 40px); border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.en .pg-others-title { margin: 0; font-size: clamp(21px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.pg-others-lead { margin: 10px 0 0; max-width: 72ch; color: var(--body); font-size: 15px; line-height: 1.6; }
.pg-other-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0 0; }
.pg-other { padding: 22px 24px; border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(180deg, #fbfcff, #fff); }
.pg-other h4 { margin: 4px 0 0; font: 600 18px/1.25 'Sora', system-ui, sans-serif; color: var(--ink); letter-spacing: -.01em; }
.pg-how { margin: 8px 0 0; color: var(--body); font-size: 14.5px; line-height: 1.55; }
.pg-answer { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed rgba(21, 87, 255, .25); }
.pg-answer p { margin: 0; color: #0b1b3a; font-size: 14.5px; line-height: 1.55; }
.pg-ico-sm { width: 40px; height: 40px; border-radius: 9px; grid-row: auto; }
.pg-ico-sm svg { width: 26px; height: 26px; }
@media (max-width: 860px) { .pg-other-grid { grid-template-columns: 1fr; } }
.pg-other-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .pg-other-grid-3 { grid-template-columns: 1fr; } }
.pg-inline { color: #1557ff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(21, 87, 255, .35); }
.pg-inline:hover { color: #0b3d91; border-bottom-color: #0b3d91; }
