/* Verdock components. The design system for the public site, built to docs/DESIGN_DIRECTION.md ("The Sealed Ledger").
   Load it LAST on every page, after verdock-ui.css, sunday.css and workspace.css. Class names are stable and start with vd-.

   CONTENTS
   1  Tokens: spacing (8 point), type scale, radii, motion
   2  Base: type, links, focus ring (keyboard only)
   3  Layout: container, 12 column grid, section, ledger rule
   4  Buttons: primary, secondary, tertiary link, two sizes
   5  Nav and footer
   6  Components: badge, seal, card, stat, table, code, callout, chain, steps, tick strip, toggle
   7  Product visual: the Run panel
   8  Docs layout
   9  Legacy pages: the old class names mapped onto the same system
  10 Motion and reduced motion
*/

/* 1 TOKENS ------------------------------------------------------------------------------ */
:root{
  --vd-s1:4px;--vd-s2:8px;--vd-s3:16px;--vd-s4:24px;--vd-s5:32px;--vd-s6:48px;--vd-s7:64px;--vd-s8:96px;--vd-s9:128px;
  --vd-fs-display:clamp(2.5rem,4.6vw,4rem);
  --vd-fs-h1:clamp(2.25rem,4vw,3.25rem);
  --vd-fs-h2:clamp(1.75rem,2.8vw,2.25rem);
  --vd-fs-h3:1.375rem;
  --vd-fs-h4:1.0625rem;
  --vd-fs-body:1.0625rem;
  --vd-fs-small:.875rem;
  --vd-fs-eyebrow:.75rem;
  --vd-fs-mono:.875rem;
  --vd-r-ctl:6px;--vd-r-tag:4px;--vd-r-card:10px;--vd-r-hero:14px;
  --vd-container:1200px;
  --vd-gutter:24px;
  --vd-ease:cubic-bezier(.2,.7,.2,1);
  --vd-ring:var(--vd-ledger);
}
@media (max-width:700px){:root{--vd-gutter:20px}}

/* 2 BASE -------------------------------------------------------------------------------- */
html body[data-ui-page]{font-size:1rem;line-height:1.6;letter-spacing:-.005em}
html body[data-ui-page] :is(h1,h2,h3,h4){text-wrap:balance}
html body[data-ui-page] .vd-display{font-size:var(--vd-fs-display);line-height:1.02;letter-spacing:-.035em;font-weight:500;margin:0}
html body[data-ui-page] .vd-h1{font-size:var(--vd-fs-h1);line-height:1.05;letter-spacing:-.03em;font-weight:500;margin:0}
html body[data-ui-page] .vd-h2{font-size:var(--vd-fs-h2);line-height:1.12;letter-spacing:-.022em;font-weight:500;margin:0}
html body[data-ui-page] .vd-h3{font-size:var(--vd-fs-h3);line-height:1.25;letter-spacing:-.012em;font-weight:600;margin:0}
html body[data-ui-page] .vd-h4{font-size:var(--vd-fs-h4);line-height:1.3;letter-spacing:0;font-weight:600;margin:0}
html body[data-ui-page] .vd-lede{margin:0;max-width:44rem;font-size:clamp(1.0625rem,1.5vw,1.25rem);line-height:1.55;color:var(--vd-muted-foreground)}
html body[data-ui-page] .vd-body{margin:0;font-size:var(--vd-fs-body);line-height:1.6;color:var(--vd-muted-foreground)}
html body[data-ui-page] .vd-small{margin:0;font-size:var(--vd-fs-small);line-height:1.5;color:var(--vd-muted-foreground)}
html body[data-ui-page] .vd-eyebrow,html body[data-ui-page] main .eyebrow{display:flex;align-items:center;gap:var(--vd-s2);margin:0 0 var(--vd-s3);font-size:var(--vd-fs-eyebrow);font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--vd-muted-foreground)}
html body[data-ui-page] .vd-eyebrow::before{content:"";width:var(--vd-s2);height:var(--vd-s2);border:1px solid var(--vd-ledger);background:var(--vd-ledger-soft)}
html body[data-ui-page] .vd-mono{font-family:var(--vd-mono);font-size:var(--vd-fs-mono);letter-spacing:0}
html body[data-ui-page] :is(a,button,summary,input,select,textarea,[tabindex]):focus{outline:none}
html body[data-ui-page] :is(a,button,summary,input,select,textarea,[tabindex]):focus-visible,
html :focus-visible{outline:2px solid var(--vd-ring);outline-offset:3px;border-radius:var(--vd-r-ctl);box-shadow:none}
html body[data-ui-page] .scroll-progress{display:none}
html body[data-ui-page] main a:not([class]){text-decoration-thickness:1px;text-decoration-color:var(--vd-border-strong);transition:text-decoration-color .12s}
html body[data-ui-page] main a:not([class]):hover{text-decoration-color:var(--vd-ledger)}

/* 3 LAYOUT ------------------------------------------------------------------------------ */
html body[data-ui-page] .vd-container,html body[data-ui-page] .wrap{width:100%;max-width:var(--vd-container);margin-inline:auto;padding-inline:var(--vd-gutter)}
html body[data-ui-page] .wrap.wrap{box-sizing:border-box}
.vd-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--vd-s4)}
.vd-grid>*{grid-column:1/-1;min-width:0}
@media (min-width:1024px){
  .vd-grid>.vd-col-3{grid-column:span 3}.vd-grid>.vd-col-4{grid-column:span 4}.vd-grid>.vd-col-5{grid-column:span 5}
  .vd-grid>.vd-col-6{grid-column:span 6}.vd-grid>.vd-col-7{grid-column:span 7}.vd-grid>.vd-col-8{grid-column:span 8}
}
.vd-cards{display:grid;gap:var(--vd-s4);grid-template-columns:1fr;align-items:stretch}
@media (min-width:720px){.vd-cards--2,.vd-cards--4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1024px){.vd-cards--3{grid-template-columns:repeat(3,minmax(0,1fr))}.vd-cards--4{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:720px) and (max-width:1023px){.vd-cards--3{grid-template-columns:repeat(2,minmax(0,1fr))}}
.vd-section{position:relative;padding-block:var(--vd-s8)}
@media (max-width:700px){.vd-section{padding-block:var(--vd-s7)}}
.vd-section+.vd-section::before{content:"";position:absolute;top:0;left:var(--vd-gutter);right:var(--vd-gutter);height:4px;border-top:1px solid var(--vd-border-strong);border-bottom:1px solid var(--vd-border-strong)}
.vd-section--tint{background:var(--vd-muted)}
.vd-sec-head{display:grid;gap:var(--vd-s3);max-width:52rem;margin-bottom:var(--vd-s6)}
.vd-sec-head>*{margin:0}
.vd-rule{height:4px;border:0;border-top:1px solid var(--vd-border-strong);border-bottom:1px solid var(--vd-border-strong);margin:var(--vd-s6) 0;background:none}
.vd-stack>*+*{margin-top:var(--vd-s3)}
.vd-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--vd-s3)}

/* Spacing helpers (no inline styles: the site policy blocks them) */
html body[data-ui-page] .vd-mt-3{margin-top:var(--vd-s3)}html body[data-ui-page] .vd-mt-4{margin-top:var(--vd-s4)}html body[data-ui-page] .vd-mt-6{margin-top:var(--vd-s6)}
html body[data-ui-page] .vd-mb-3{margin-bottom:var(--vd-s3)}html body[data-ui-page] .vd-mb-5{margin-bottom:var(--vd-s5)}
html body[data-ui-page] .vd-measure{max-width:52rem}
.vd-grid--center{align-items:center}.vd-cards--top{align-items:start}

/* 4 BUTTONS: primary, secondary, tertiary link. Two sizes, one radius, one focus ring. -- */
html body[data-ui-page] :is(.vd-btn,a.button,.button,button.primary,.nav-cta,.form-card button),
html body[data-ui-page] :is(.vd-btn--secondary,.button.sd-ghost,.secondary,.wd-secondary,button.secondary,.btn-split a,.evidence-link){
  display:inline-flex!important;align-items:center;justify-content:center;gap:var(--vd-s2);box-sizing:border-box;height:44px;min-height:44px;padding:0 20px!important;
  border:1px solid transparent;border-radius:var(--vd-r-ctl)!important;font:500 .9375rem/1 var(--vd-sans)!important;letter-spacing:-.005em;text-decoration:none!important;white-space:nowrap;cursor:pointer;box-shadow:none!important;
  transition:background-color .12s var(--vd-ease),border-color .12s var(--vd-ease),color .12s var(--vd-ease),transform .12s var(--vd-ease)}
html body[data-ui-page] :is(.vd-btn,a.button,.button,button.primary,.nav-cta,.form-card button):not(.vd-btn--secondary):not(.sd-ghost){
  background:var(--vd-foreground)!important;color:var(--vd-background)!important;border-color:var(--vd-foreground)}
html body[data-ui-page] :is(.vd-btn,a.button,.button,button.primary,.nav-cta,.form-card button):not(.vd-btn--secondary):not(.sd-ghost):hover{
  background:var(--vd-ledger)!important;border-color:var(--vd-ledger);color:var(--vd-background)!important}
html body[data-ui-page] :is(.vd-btn--secondary,.button.sd-ghost,.secondary,.wd-secondary,button.secondary,.btn-split a,.evidence-link){
  background:var(--vd-surface)!important;color:var(--vd-foreground)!important;border-color:var(--vd-border-strong)}
html body[data-ui-page] :is(.vd-btn--secondary,.button.sd-ghost,.secondary,.wd-secondary,button.secondary,.btn-split a,.evidence-link):hover{
  background:var(--vd-muted)!important;border-color:var(--vd-foreground)}
html body[data-ui-page] :is(.vd-btn,.button,.nav-cta,.vd-btn--secondary,.secondary,.btn-split a):active{transform:translateY(1px)}
html body[data-ui-page] .evidence-link::after{content:"\2197";font-size:1em;margin:0}
html body[data-ui-page] .vd-btn--sm,html body[data-ui-page] .topbar .site-links a.nav-cta{height:36px;min-height:36px;padding:0 14px!important;font-size:.875rem!important}
html body[data-ui-page] .vd-btn--block{width:100%}
html body[data-ui-page] :is(.vd-btn,.button)[disabled],html body[data-ui-page] button:disabled{opacity:.45;cursor:not-allowed;transform:none}
html body[data-ui-page] :is(.vd-link,.text-link){display:inline-flex;align-items:center;gap:6px;height:auto;min-height:0;padding:0!important;border:0!important;border-radius:2px!important;background:none!important;color:var(--vd-foreground)!important;
  font:600 .9375rem/1.4 var(--vd-sans)!important;text-decoration:underline!important;text-decoration-thickness:1px!important;text-underline-offset:4px;text-decoration-color:var(--vd-border-strong)!important;transition:text-decoration-color .12s,gap .12s var(--vd-ease)}
html body[data-ui-page] :is(.vd-link,.text-link):hover{text-decoration-color:var(--vd-ledger)!important;gap:10px}
html body[data-ui-page] .vd-link::after{content:"\2192";font-weight:400}
html body[data-ui-page] .vd-link--out::after{content:"\2197"}
html body[data-ui-page] .vd-link--plain::after{content:none}
html body[data-ui-page] .vd-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--vd-s3) var(--vd-s4);margin-top:var(--vd-s5)}
@media (max-width:520px){html body[data-ui-page] .vd-actions .vd-btn{flex:1 1 100%}}

/* 5 NAV AND FOOTER ---------------------------------------------------------------------- */
html body[data-ui-page] .topbar,html body[data-ui-page] .topbar.wrap{position:sticky;top:0;z-index:50;box-sizing:border-box;width:100%;max-width:none;height:64px;min-height:64px;margin:0;padding:0 max(var(--vd-gutter),calc((100vw - var(--vd-container))/2 + var(--vd-gutter)));
  display:flex;align-items:center;gap:var(--vd-s4);border-bottom:1px solid var(--vd-border);background:color-mix(in oklab,var(--vd-background) 86%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
html body[data-ui-page] .topbar .wordmark{flex:none;gap:10px;font-size:.8125rem;font-weight:700;letter-spacing:.14em}
html body[data-ui-page] .topbar .site-links{flex:1;display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:var(--vd-s4)}
html body[data-ui-page] .topbar .site-links a:not(.nav-cta){position:relative;display:inline-flex;align-items:center;height:64px;font-size:.875rem;font-weight:500;color:var(--vd-muted-foreground);box-shadow:none;padding:0}
html body[data-ui-page] .topbar .site-links a:not(.nav-cta):hover{color:var(--vd-foreground)}
html body[data-ui-page] .topbar .site-links a[aria-current="page"]{color:var(--vd-foreground)}
html body[data-ui-page] .topbar .site-links a[aria-current="page"]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--vd-ledger)}
html body[data-ui-page] .topbar .site-links .nav-cta{margin-left:var(--vd-s2)}
html body[data-ui-page] .theme-toggle{flex:none;width:36px;height:36px;min-height:36px;border-radius:var(--vd-r-ctl)!important;border:1px solid var(--vd-border-strong);background:var(--vd-surface)}
@media (max-width:860px){
  html body[data-ui-page] .topbar,html body[data-ui-page] .topbar.wrap{flex-wrap:wrap;height:auto;min-height:56px;padding-block:0;gap:0 var(--vd-s3);row-gap:0}
  html body[data-ui-page] .topbar .wordmark{height:56px;flex:1}
  html body[data-ui-page] .theme-toggle{order:2}
  html body[data-ui-page] .topbar .site-links{order:3;flex:1 0 100%;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;gap:var(--vd-s3);margin-inline:calc(var(--vd-gutter) * -1);padding-inline:var(--vd-gutter);border-top:1px solid var(--vd-border)}
  html body[data-ui-page] .topbar .site-links::-webkit-scrollbar{display:none}
  html body[data-ui-page] .topbar .site-links a{flex:none;height:44px!important}
  html body[data-ui-page] .topbar .site-links .nav-cta{height:32px!important;margin-left:0}
}
html body[data-ui-page] footer.footer{width:100%;max-width:none;box-sizing:border-box;display:block;margin:var(--vd-s7) 0 0;padding:0;border-top:1px solid var(--vd-border-strong);font-size:.875rem;color:var(--vd-muted-foreground);min-height:0}
html body[data-ui-page] footer.footer::after{content:none;display:none}
html body[data-ui-page] .vd-foot{display:grid;gap:var(--vd-s6) var(--vd-s5);grid-template-columns:1fr;padding-block:var(--vd-s7) var(--vd-s6)}
@media (min-width:860px){html body[data-ui-page] .vd-foot{grid-template-columns:minmax(0,5fr) repeat(3,minmax(0,2fr))}}
html body[data-ui-page] .vd-foot-brand{display:grid;gap:var(--vd-s3);align-content:start}
html body[data-ui-page] .vd-foot-brand p{margin:0;max-width:24rem;line-height:1.5}
html body[data-ui-page] .vd-foot h2{margin:0 0 var(--vd-s3);font:600 .75rem/1 var(--vd-sans);letter-spacing:.12em;text-transform:uppercase;color:var(--vd-foreground)}
html body[data-ui-page] .vd-foot ul{display:grid;gap:12px;margin:0;padding:0;list-style:none}
html body[data-ui-page] .vd-foot a:not(.wordmark){color:var(--vd-muted-foreground);text-decoration:none;transition:color .12s}
html body[data-ui-page] .vd-foot a:not(.wordmark):hover{color:var(--vd-foreground);text-decoration:underline;text-underline-offset:4px}
html body[data-ui-page] .vd-foot-end{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--vd-s2) var(--vd-s4);padding-block:var(--vd-s4);border-top:1px solid var(--vd-border);font-size:.8125rem}
/* Older flat footers on pages built elsewhere still line up */
html body[data-ui-page] footer.footer:not(:has(.vd-foot)){display:flex;flex-wrap:wrap;align-items:center;gap:var(--vd-s2) var(--vd-s4);padding:var(--vd-s4) max(var(--vd-gutter),calc((100vw - var(--vd-container))/2 + var(--vd-gutter)))}

/* 6 COMPONENTS -------------------------------------------------------------------------- */
/* Badge: mono, 4px radius, three fixed statuses */
html body[data-ui-page] .vd-badge{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;height:24px;padding:0 8px;border:1px solid var(--vd-border-strong);border-radius:var(--vd-r-tag)!important;background:var(--vd-muted);color:var(--vd-muted-foreground);font:600 .6875rem/1 var(--vd-mono);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
html body[data-ui-page] .vd-badge.is-ok{border-color:var(--vd-ledger-line);background:var(--vd-ledger-soft);color:var(--vd-ledger)}
html body[data-ui-page] .vd-badge.is-held{border-color:color-mix(in oklab,var(--vd-amber) 45%,transparent);background:var(--vd-amber-soft);color:var(--vd-amber)}
html body[data-ui-page] .vd-badge.is-blocked{border-color:color-mix(in oklab,var(--vd-fail) 45%,transparent);background:var(--vd-fail-soft);color:var(--vd-fail)}
/* Seal: the signature mark. Ring plus tick (verified), open ring plus dot (held), ring plus bar (blocked). */
.vd-seal{flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;color:var(--vd-ledger)}
.vd-seal--lg{width:28px;height:28px}
.vd-seal.is-held{color:var(--vd-amber)}.vd-seal.is-blocked{color:var(--vd-fail)}
.vd-seal .ring{stroke-dasharray:63;stroke-dashoffset:0}
.vd-seal .tick{stroke-dasharray:18;stroke-dashoffset:0}
.vd-seal .dot{fill:currentColor;stroke:none}
.vd-seal.is-held .ring{stroke-dasharray:4 3.2}
/* Card: equal height, header, body, footer action pinned to the bottom */
html body[data-ui-page] .vd-card{display:flex;flex-direction:column;box-sizing:border-box;height:100%;min-width:0;border:1px solid var(--vd-border);border-radius:var(--vd-r-card)!important;background:var(--vd-surface)!important;box-shadow:none!important;padding:0}
html body[data-ui-page] .vd-card-head{display:flex;flex-direction:column;align-items:flex-start;gap:var(--vd-s3);padding:var(--vd-s4) var(--vd-s4) 0}
html body[data-ui-page] .vd-card-body{flex:1;display:grid;align-content:start;gap:var(--vd-s2);padding:var(--vd-s3) var(--vd-s4) var(--vd-s4)}
html body[data-ui-page] .vd-card-body>*{margin:0}
html body[data-ui-page] .vd-card-foot{display:flex;align-items:center;justify-content:space-between;gap:var(--vd-s3);padding:var(--vd-s3) var(--vd-s4);border-top:1px solid var(--vd-border);min-height:56px;box-sizing:border-box}
html body[data-ui-page] .vd-card--accent{border-color:var(--vd-ledger-line);box-shadow:inset 0 2px 0 var(--vd-ledger)!important}
html body[data-ui-page] .vd-card .vd-glyph{width:32px;height:32px;fill:none;stroke:var(--vd-ledger);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
/* Stat tile: big figure, label, ledger tick marks on top */
html body[data-ui-page] .vd-stats{display:grid;gap:0;grid-template-columns:1fr;border:1px solid var(--vd-border);border-radius:var(--vd-r-card);background:var(--vd-surface);overflow:hidden}
@media (min-width:720px){html body[data-ui-page] .vd-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1024px){html body[data-ui-page] .vd-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
html body[data-ui-page] .vd-stat{position:relative;display:flex;flex-direction:column;gap:var(--vd-s2);padding:var(--vd-s5) var(--vd-s4) var(--vd-s4);border-top:1px solid var(--vd-border)}
html body[data-ui-page] .vd-stat:first-child{border-top:0}
@media (min-width:720px){html body[data-ui-page] .vd-stat:nth-child(-n+2){border-top:0}html body[data-ui-page] .vd-stat:nth-child(even){border-left:1px solid var(--vd-border)}}
@media (min-width:1024px){html body[data-ui-page] .vd-stat{border-top:0}html body[data-ui-page] .vd-stat+.vd-stat{border-left:1px solid var(--vd-border)}}
html body[data-ui-page] .vd-stat::before{content:"";position:absolute;top:0;left:var(--vd-s4);width:32px;height:3px;background:var(--vd-ledger)}
html body[data-ui-page] .vd-stat b{display:block;font:600 clamp(1.75rem,2.6vw,2.25rem)/1.1 var(--vd-sans);letter-spacing:-.025em;font-variant-numeric:tabular-nums;color:var(--vd-foreground)}
html body[data-ui-page] .vd-stat>span{font-size:.9375rem;line-height:1.5;color:var(--vd-muted-foreground)}
/* Table */
html body[data-ui-page] .vd-table-wrap{overflow-x:auto;border:1px solid var(--vd-border);border-radius:var(--vd-r-card);background:var(--vd-surface)}
html body[data-ui-page] .vd-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.9375rem;line-height:1.5;text-align:left}
html body[data-ui-page] .vd-table :is(th,td){padding:var(--vd-s3) var(--vd-s4);vertical-align:top;border-bottom:1px solid var(--vd-border)!important;text-align:left}
html body[data-ui-page] .vd-table thead th{background:var(--vd-muted);font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;font-weight:600;color:var(--vd-muted-foreground);border-bottom:1px solid var(--vd-border-strong)!important}
html body[data-ui-page] .vd-table tbody tr:last-child :is(th,td){border-bottom:0!important}
html body[data-ui-page] .vd-table tbody th{width:26%;font-weight:600;letter-spacing:0;text-transform:none;font-size:.9375rem;color:var(--vd-foreground)}
html body[data-ui-page] .vd-table td{color:var(--vd-muted-foreground)}
html body[data-ui-page] .vd-table td.is-us{color:var(--vd-foreground);background:var(--vd-ledger-soft);box-shadow:inset 2px 0 0 var(--vd-ledger)}
html body[data-ui-page] .vd-table thead th.is-us{color:var(--vd-ledger);background:var(--vd-ledger-soft)}
html body[data-ui-page] .vd-table .vd-num{font-family:var(--vd-mono);font-variant-numeric:tabular-nums;white-space:nowrap}
@media (max-width:760px){
  html body[data-ui-page] .vd-table--stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  html body[data-ui-page] .vd-table--stack,html body[data-ui-page] .vd-table--stack tbody,html body[data-ui-page] .vd-table--stack tr,html body[data-ui-page] .vd-table--stack :is(th,td){display:block;width:100%!important;box-sizing:border-box}
  html body[data-ui-page] .vd-table--stack tr{border-bottom:1px solid var(--vd-border)}
  html body[data-ui-page] .vd-table--stack tr:last-child{border-bottom:0}
  html body[data-ui-page] .vd-table--stack :is(th,td){border:0!important;padding:var(--vd-s2) var(--vd-s4)}
  html body[data-ui-page] .vd-table--stack tbody th{padding-top:var(--vd-s3)}
  html body[data-ui-page] .vd-table--stack td::before{content:attr(data-label);display:block;margin-bottom:2px;font-size:.6875rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--vd-muted-foreground)}
  html body[data-ui-page] .vd-table--stack td:last-child{padding-bottom:var(--vd-s3)}
}
/* Code block with copy */
html body[data-ui-page] .vd-code{margin:0;border:1px solid var(--vd-border);border-radius:var(--vd-r-card);background:var(--vd-panel-dark);color:var(--vd-on-dark);overflow:hidden}
html body[data-ui-page] .vd-code-bar{display:flex;align-items:center;justify-content:space-between;gap:var(--vd-s3);min-height:40px;padding:0 var(--vd-s3) 0 var(--vd-s4);border-bottom:1px solid color-mix(in oklab,var(--vd-on-dark) 14%,transparent);font:500 .75rem/1 var(--vd-mono);color:color-mix(in oklab,var(--vd-on-dark) 65%,transparent)}
html body[data-ui-page] .vd-code pre{margin:0;padding:var(--vd-s4);border:0!important;border-radius:0!important;background:transparent!important;overflow-x:auto;font:400 .9375rem/1.8 var(--vd-mono);color:var(--vd-on-dark)}
html body[data-ui-page] .vd-code pre code{font:inherit;color:inherit;background:none;white-space:pre}
html body[data-ui-page] .vd-code .vd-prompt{color:var(--vd-ledger-on-dark);user-select:none}
html body[data-ui-page] .vd-copy{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:1px solid color-mix(in oklab,var(--vd-on-dark) 24%,transparent);border-radius:var(--vd-r-ctl);background:transparent;color:var(--vd-on-dark);font:500 .75rem/1 var(--vd-sans);cursor:pointer;transition:background-color .12s,border-color .12s}
html body[data-ui-page] .vd-copy:hover{background:color-mix(in oklab,var(--vd-on-dark) 12%,transparent);border-color:var(--vd-on-dark)}
html body[data-ui-page] .vd-copy.is-done{color:var(--vd-ledger-on-dark);border-color:var(--vd-ledger-on-dark)}
html body[data-ui-page] .vd-copy:focus-visible,html body[data-ui-page] .vd-code :focus-visible{outline-color:var(--vd-ledger-on-dark)}
/* Callout */
html body[data-ui-page] .vd-callout{display:flex;gap:var(--vd-s3);align-items:flex-start;padding:var(--vd-s4);border:1px solid var(--vd-border);border-left:3px solid var(--vd-ledger);border-radius:var(--vd-r-ctl);background:var(--vd-surface);font-size:.9375rem;line-height:1.55;color:var(--vd-muted-foreground)}
html body[data-ui-page] .vd-callout p{margin:0}
html body[data-ui-page] .vd-callout.is-held{border-left-color:var(--vd-amber)}
/* Tick strip: facts separated by ledger tick marks */
html body[data-ui-page] .vd-facts{display:grid;grid-template-columns:1fr;gap:0;margin:0;padding:0;list-style:none;border-block:1px solid var(--vd-border-strong)}
@media (min-width:860px){html body[data-ui-page] .vd-facts{grid-template-columns:repeat(5,minmax(0,1fr))}}
html body[data-ui-page] .vd-facts li{position:relative;display:flex;align-items:center;gap:var(--vd-s2);min-height:56px;padding:var(--vd-s2) 0;font-size:.9375rem;font-weight:500;line-height:1.3;border-top:1px solid var(--vd-border)}
html body[data-ui-page] .vd-facts li:first-child{border-top:0}
@media (min-width:860px){
  html body[data-ui-page] .vd-facts li{min-height:72px;padding:var(--vd-s2) var(--vd-s3);border-top:0;border-left:1px solid var(--vd-border)}
  html body[data-ui-page] .vd-facts li:first-child{border-left:0;padding-left:0}
  html body[data-ui-page] .vd-facts li::before{content:"";position:absolute;left:-1px;top:0;width:1px;height:10px;background:var(--vd-ledger)}
  html body[data-ui-page] .vd-facts li:first-child::before{content:none}
}
/* Steps: Before, During, After on one rail */
html body[data-ui-page] .vd-steps{display:grid;gap:var(--vd-s5);grid-template-columns:1fr;margin:0;padding:0;list-style:none}
@media (min-width:860px){html body[data-ui-page] .vd-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--vd-s4)}}
html body[data-ui-page] .vd-step{position:relative;display:grid;align-content:start;gap:var(--vd-s2);padding:var(--vd-s5) var(--vd-s4) var(--vd-s4);border:1px solid var(--vd-border);border-radius:var(--vd-r-card);background:var(--vd-surface)}
html body[data-ui-page] .vd-step-n{display:inline-flex;align-items:center;gap:var(--vd-s2);font:600 .75rem/1 var(--vd-mono);letter-spacing:.08em;color:var(--vd-ledger)}
html body[data-ui-page] .vd-step h3{margin:0}
html body[data-ui-page] .vd-step p{margin:0;font-size:var(--vd-fs-body);color:var(--vd-muted-foreground)}
@media (min-width:860px){html body[data-ui-page] .vd-step:not(:last-child)::after{content:"";position:absolute;top:calc(var(--vd-s5) + 5px);left:100%;width:var(--vd-s4);height:1px;background:var(--vd-ledger-line)}}
html body[data-ui-page] .vd-step-n::before{content:"";width:9px;height:9px;border:1.5px solid var(--vd-ledger);background:var(--vd-surface)}
html body[data-ui-page] .vd-step:last-child .vd-step-n::before{background:var(--vd-ledger)}
/* Toggle (segmented): India and Global */
html body[data-ui-page] .vd-toggle{display:inline-flex;padding:3px;border:1px solid var(--vd-border-strong);border-radius:var(--vd-r-ctl);background:var(--vd-surface)}
html body[data-ui-page] .vd-toggle button{height:34px;padding:0 var(--vd-s3);border:0;border-radius:4px!important;background:transparent;color:var(--vd-muted-foreground);font:500 .875rem/1 var(--vd-sans);cursor:pointer;transition:background-color .12s,color .12s}
html body[data-ui-page] .vd-toggle button[aria-pressed="true"]{background:var(--vd-foreground);color:var(--vd-background)}
html body[data-ui-page] .vd-toggle button:not([aria-pressed="true"]):hover{color:var(--vd-foreground)}
html:not(.js) .vd-toggle{display:none}
/* Price card */
html body[data-ui-page] .vd-price{display:grid;gap:2px;margin:0}
html body[data-ui-page] .vd-price>span{display:grid;gap:2px}
html body[data-ui-page] .vd-price small{display:block;min-height:1.4em}
html body[data-ui-page] .vd-price b{font:600 clamp(1.75rem,2.4vw,2.25rem)/1.1 var(--vd-sans);letter-spacing:-.025em;font-variant-numeric:tabular-nums;color:var(--vd-foreground)}
html body[data-ui-page] .vd-price small{font-size:.9375rem;color:var(--vd-muted-foreground)}
[data-region="global"] .vd-r-india,[data-region="india"] .vd-r-global{display:none!important}
html body[data-ui-page] .vd-list{display:grid;gap:12px;margin:0;padding:0;list-style:none}
html body[data-ui-page] .vd-list li{position:relative;padding-left:28px;font-size:var(--vd-fs-body);line-height:1.5;color:var(--vd-muted-foreground)}
html body[data-ui-page] .vd-list li::before{content:"";position:absolute;left:0;top:.2em;width:16px;height:16px;border:1.5px solid var(--vd-ledger);border-radius:50%}
html body[data-ui-page] .vd-list li::after{content:"";position:absolute;left:5px;top:calc(.2em + 3.5px);width:5px;height:3px;border-left:1.5px solid var(--vd-ledger);border-bottom:1.5px solid var(--vd-ledger);transform:rotate(-45deg)}

/* 7 PRODUCT VISUAL: the Run panel. A static drawing of the real panel: counters plus a chain of receipts. */
html body[data-ui-page] .vd-hero{position:relative;padding-block:var(--vd-s8) var(--vd-s7);overflow:clip}
html body[data-ui-page] .vd-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:linear-gradient(to bottom,transparent calc(100% - 1px),var(--vd-grid-line) 0);background-size:100% 32px;
  mask-image:linear-gradient(to bottom,#000 30%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 30%,transparent 100%)}
html body[data-ui-page] .vd-hero-grid{display:grid;gap:var(--vd-s7) var(--vd-s6);grid-template-columns:1fr;align-items:center}
@media (min-width:1024px){html body[data-ui-page] .vd-hero-grid{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}}
html body[data-ui-page] .vd-hero-copy{display:grid;gap:var(--vd-s4);align-content:start}
html body[data-ui-page] .vd-hero-copy>*{margin:0}
@media (max-width:700px){html body[data-ui-page] .vd-hero{padding-block:var(--vd-s6) var(--vd-s5)}}
html body[data-ui-page] .vd-run{box-sizing:border-box;border:1px solid var(--vd-border-strong);border-radius:var(--vd-r-hero);background:var(--vd-surface);box-shadow:0 24px 48px -32px var(--vd-shadow-tint);overflow:hidden;margin:0}
html body[data-ui-page] .vd-run-head{display:flex;align-items:center;gap:var(--vd-s3);padding:var(--vd-s3) var(--vd-s4);border-bottom:1px solid var(--vd-border);background:var(--vd-muted)}
html body[data-ui-page] .vd-run-title{flex:1;min-width:0;font:600 .8125rem/1.3 var(--vd-mono);letter-spacing:0;color:var(--vd-foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body[data-ui-page] .vd-counters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;border-bottom:1px solid var(--vd-border)}
html body[data-ui-page] .vd-counter{margin:0;padding:var(--vd-s3) var(--vd-s4)}
html body[data-ui-page] .vd-counter+.vd-counter{border-left:1px solid var(--vd-border)}
html body[data-ui-page] .vd-counter dt{margin:0;font:600 .6875rem/1 var(--vd-sans);letter-spacing:.12em;text-transform:uppercase;color:var(--vd-muted-foreground)}
html body[data-ui-page] .vd-counter dd{margin:var(--vd-s2) 0 0;font:500 1.5rem/1 var(--vd-mono);font-variant-numeric:tabular-nums;color:var(--vd-foreground)}
html body[data-ui-page] .vd-counter.is-held dd{color:var(--vd-amber)}html body[data-ui-page] .vd-counter.is-blocked dd{color:var(--vd-fail)}html body[data-ui-page] .vd-counter.is-ok dd{color:var(--vd-ledger)}
html body[data-ui-page] .vd-chain{list-style:none;margin:0;padding:var(--vd-s4);display:grid;gap:var(--vd-s4)}
html body[data-ui-page] .vd-receipt{position:relative;display:grid;gap:var(--vd-s2);padding:var(--vd-s3) var(--vd-s3) var(--vd-s3) var(--vd-s4);border:1px solid var(--vd-border);border-radius:var(--vd-r-ctl);background:var(--vd-background)}
html body[data-ui-page] .vd-receipt::before{content:"";position:absolute;left:-1px;top:-1px;bottom:-1px;width:3px;background:var(--vd-ledger);border-radius:var(--vd-r-ctl) 0 0 var(--vd-r-ctl)}
html body[data-ui-page] .vd-receipt.is-held::before{background:var(--vd-amber)}html body[data-ui-page] .vd-receipt.is-blocked::before{background:var(--vd-fail)}
html body[data-ui-page] .vd-receipt+.vd-receipt::after{content:"";position:absolute;left:24px;top:calc(var(--vd-s4) * -1 - 1px);width:1px;height:var(--vd-s4);background:var(--vd-ledger-line)}
html body[data-ui-page] .vd-receipt-top{display:flex;align-items:center;gap:var(--vd-s2);flex-wrap:wrap}
html body[data-ui-page] .vd-receipt-top b{font:600 .875rem/1.2 var(--vd-sans);letter-spacing:-.005em;margin-right:auto}
html body[data-ui-page] .vd-receipt-rows{display:grid;grid-template-columns:auto 1fr;gap:2px var(--vd-s3);margin:0;font:400 .75rem/1.6 var(--vd-mono);letter-spacing:0}
html body[data-ui-page] .vd-receipt-rows dt{color:var(--vd-muted-foreground);margin:0}
html body[data-ui-page] .vd-receipt-rows dd{margin:0;color:var(--vd-foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body[data-ui-page] .vd-run-foot{display:flex;align-items:center;gap:var(--vd-s2);padding:var(--vd-s3) var(--vd-s4);border-top:1px solid var(--vd-border);font:500 .75rem/1.4 var(--vd-mono);color:var(--vd-muted-foreground)}
html body[data-ui-page] .vd-run-foot .vd-seal{color:var(--vd-ledger)}
html body[data-ui-page] .vd-caption{margin:var(--vd-s3) 0 0;font-size:.8125rem;line-height:1.5;color:var(--vd-muted-foreground)}
@media (max-width:640px){html body[data-ui-page] .vd-run-head{flex-wrap:wrap}html body[data-ui-page] .vd-run-title{flex:1 0 100%}}
@media (max-width:520px){html body[data-ui-page] .vd-counter{padding:var(--vd-s3) var(--vd-s2) var(--vd-s3) var(--vd-s3)}html body[data-ui-page] .vd-counter dd{font-size:1.25rem}html body[data-ui-page] .vd-counter dt{letter-spacing:.06em;font-size:.625rem}}

/* 8 DOCS LAYOUT: sidebar plus article */
html body[data-ui-page] .vd-docs{display:grid;gap:var(--vd-s5) var(--vd-s7);grid-template-columns:1fr;padding-block:var(--vd-s7) var(--vd-s6)}
@media (min-width:960px){html body[data-ui-page] .vd-docs{grid-template-columns:220px minmax(0,1fr);align-items:start}}
html body[data-ui-page] .vd-docs-nav{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--vd-border);margin-inline:calc(var(--vd-gutter) * -1);padding-inline:var(--vd-gutter)}
html body[data-ui-page] .vd-docs-nav::-webkit-scrollbar{display:none}
html body[data-ui-page] .vd-docs-nav a{flex:none;display:flex;align-items:center;height:40px;padding:0 12px;border-radius:var(--vd-r-ctl)!important;font-size:.875rem;font-weight:500;color:var(--vd-muted-foreground);text-decoration:none!important;border:0!important;background:none!important}
html body[data-ui-page] .vd-docs-nav a:hover{color:var(--vd-foreground);background:var(--vd-muted)!important}
html body[data-ui-page] .vd-docs-nav a[aria-current="page"]{color:var(--vd-foreground)!important;background:var(--vd-ledger-soft)!important;font-weight:600;box-shadow:inset 2px 0 0 var(--vd-ledger)}
@media (min-width:960px){html body[data-ui-page] .vd-docs-nav{position:sticky;top:88px;flex-direction:column;overflow:visible;border:0;margin:0;padding:0;gap:2px}}
html body[data-ui-page] .vd-article{min-width:0;max-width:46rem}
html body[data-ui-page] .vd-article>.eyebrow{margin-bottom:var(--vd-s3)}
html body[data-ui-page] .vd-article h1{font-size:var(--vd-fs-h1);line-height:1.08;letter-spacing:-.03em;font-weight:500;margin:0 0 var(--vd-s4)}
html body[data-ui-page] .vd-article h2{font-size:1.5rem;line-height:1.2;letter-spacing:-.015em;font-weight:600;margin:var(--vd-s7) 0 var(--vd-s3);padding-top:var(--vd-s4);border-top:1px solid var(--vd-border)}
html body[data-ui-page] .vd-article :is(p,li){font-size:1.0625rem;line-height:1.7;color:var(--vd-muted-foreground);max-width:none}
html body[data-ui-page] .vd-article strong{color:var(--vd-foreground);font-weight:600}
html body[data-ui-page] .vd-article :is(p,ul,ol,pre,.vd-code){margin:0 0 var(--vd-s3)}
html body[data-ui-page] .vd-article :is(ul,ol){padding-left:var(--vd-s4)}
html body[data-ui-page] .vd-article li{margin-bottom:var(--vd-s2);padding-left:4px}
html body[data-ui-page] .vd-article li::marker{color:var(--vd-ledger);font-weight:600}
html body[data-ui-page] .vd-article :not(pre)>code{padding:1px 6px;border:1px solid var(--vd-border);border-radius:var(--vd-r-tag);background:var(--vd-muted);color:var(--vd-foreground);font-size:.875em}
html body[data-ui-page] .vd-article pre{box-sizing:border-box;padding:var(--vd-s4);border:1px solid var(--vd-border);border-radius:var(--vd-r-card);background:var(--vd-panel-dark);color:var(--vd-on-dark);overflow-x:auto;font:400 .875rem/1.75 var(--vd-mono)}
html body[data-ui-page] .vd-article pre code{padding:0;border:0;background:none;color:inherit;font:inherit}
html body[data-ui-page] .vd-article .vd-code pre{margin:0;border:0;border-radius:0}
html body[data-ui-page] .vd-article .doc-nav{display:none}
html body[data-ui-page] .vd-docs-cards{margin:var(--vd-s5) 0}

/* 9 LEGACY PAGES: security, receipts, verifier, privacy, terms, feedback, 404 and the lab pages keep their markup and take the system */
html body[data-ui-page] main :is(h1){font-weight:500;letter-spacing:-.03em;line-height:1.05}
html body[data-ui-page] .sec-hero h1,html body[data-ui-page] .cr h1{font-size:var(--vd-fs-h1);line-height:1.05;letter-spacing:-.03em;max-width:24ch}
html body[data-ui-page] .sec-hero{padding-block:var(--vd-s8) var(--vd-s5)}
html body[data-ui-page] .sec-row{grid-template-columns:48px minmax(0,5fr) minmax(0,7fr);gap:var(--vd-s4);padding:var(--vd-s5) 0}
html body[data-ui-page] .sec-row h2{font-size:var(--vd-fs-h3);line-height:1.25;letter-spacing:-.012em;font-weight:600}
html body[data-ui-page] .sec-n{font:600 .75rem/1.8 var(--vd-mono);color:var(--vd-ledger)}
html body[data-ui-page] .sec-list{border-top:1px solid var(--vd-border-strong)}
html body[data-ui-page] .sec-row{border-bottom:1px solid var(--vd-border)}
html body[data-ui-page] .sec-claim{border-radius:var(--vd-r-card)}
html body[data-ui-page] .sec-fig{max-width:720px}
html body[data-ui-page] .cr-pill,html body[data-ui-page] .invite-tag{border-radius:var(--vd-r-tag);font-family:var(--vd-mono)}
html body[data-ui-page] :is(.panel,.form-card,.journey-cta,.vd-figure,.table-wrap,.notice,details){border-radius:var(--vd-r-card)!important}
html body[data-ui-page] .notice{border-radius:var(--vd-r-ctl)!important}
html body[data-ui-page] main.wrap:not(.vd-docs-main){padding-bottom:var(--vd-s6)}
html body[data-ui-page] main.wrap :is(.doc,.panel){max-width:none}
html body[data-ui-page] input:is([type=text],[type=email],[type=number],[type=search],:not([type])),html body[data-ui-page] :is(select,textarea){border-radius:var(--vd-r-ctl)!important;min-height:44px;padding:0 var(--vd-s3)}
html body[data-ui-page] textarea{padding-block:var(--vd-s3)}
html body[data-ui-page] .sec-row p+p{margin-top:var(--vd-s3)}
html body[data-ui-page] .sec-row p a{font-weight:600;color:var(--vd-foreground)}
html body[data-ui-page] .sec-hero .button,html body[data-ui-page] .sec-hero .vd-btn{margin-top:var(--vd-s3)}
html body[data-ui-page] main .sec-list+.cr-note{max-width:none;margin:var(--vd-s5) 0 var(--vd-s4);padding:var(--vd-s4);border:1px solid var(--vd-border);border-left:3px solid var(--vd-ledger);border-radius:var(--vd-r-ctl);background:var(--vd-surface);font:400 .9375rem/1.6 var(--vd-sans);color:var(--vd-muted-foreground)}
html body[data-ui-page] .vd-article .vd-card :is(h2,h3){margin:0;padding:0;border:0}
html body[data-ui-page] .vd-article .vd-card p{margin:0}
html body[data-ui-page] main.feedback-layout{width:100%;max-width:var(--vd-container);padding-inline:var(--vd-gutter);box-sizing:border-box}
html body[data-ui-page] .vd-form{display:grid;gap:var(--vd-s3);padding:var(--vd-s5)}
html body[data-ui-page] .vd-form>*{margin:0}
html body[data-ui-page] .vd-form h2{font-size:var(--vd-fs-h3);letter-spacing:-.012em;font-weight:600}
html body[data-ui-page] .vd-form label{display:block;margin-bottom:var(--vd-s2);font-size:.9375rem;font-weight:500}
html body[data-ui-page] .vd-form :is(input[type=text],input[type=file]){width:100%;max-width:40rem;box-sizing:border-box}
html body[data-ui-page] .vd-form input[type=file]{font-size:.9375rem}
html body[data-ui-page] .vd-form .vd-btn{justify-self:start}
html body[data-ui-page] .vd-note,html body[data-ui-page] main .vd-note{max-width:none;margin:var(--vd-s4) 0;padding:var(--vd-s4);border:1px solid var(--vd-border);border-left:3px solid var(--vd-ledger);border-radius:var(--vd-r-ctl);background:var(--vd-surface);font:400 .9375rem/1.6 var(--vd-sans);color:var(--vd-muted-foreground)}
/* A single reading column for text pages */
html body[data-ui-page] .vd-page{padding-block:var(--vd-s8) var(--vd-s6)}
html body[data-ui-page] .vd-page .vd-article{max-width:48rem}
@media (max-width:700px){html body[data-ui-page] .vd-page{padding-block:var(--vd-s6) var(--vd-s5)}html body[data-ui-page] .sec-row{grid-template-columns:1fr;gap:var(--vd-s2)}}
html body[data-ui-page] .vd-page-head{display:grid;gap:var(--vd-s3);max-width:52rem;margin-bottom:var(--vd-s6)}
html body[data-ui-page] .vd-page-head>*{margin:0}

/* 10 MOTION: quiet and precise. The final state is the default; motion only plays when allowed. */
@keyframes vd-draw{from{stroke-dashoffset:var(--vd-len,63)}to{stroke-dashoffset:0}}
@keyframes vd-stamp{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@keyframes vd-link{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@media (prefers-reduced-motion:no-preference){
  .vd-seal .ring{animation:vd-draw .6s var(--vd-ease) both}
  .vd-seal .tick{--vd-len:18;animation:vd-draw .3s .45s var(--vd-ease) both}
  html.js .vd-run:not(.is-in) .vd-receipt{opacity:0}
  html.js .vd-run.is-in .vd-receipt{animation:vd-stamp .6s var(--vd-ease) both}
  html.js .vd-run.is-in .vd-receipt:nth-child(2){animation-delay:.25s}
  html.js .vd-run.is-in .vd-receipt:nth-child(3){animation-delay:.5s}
  html.js .vd-run.is-in .vd-receipt+.vd-receipt::after{transform-origin:top;animation:vd-link .4s var(--vd-ease) both}
  html.js .vd-run.is-in .vd-receipt:nth-child(2)::after{animation-delay:.2s}
  html.js .vd-run.is-in .vd-receipt:nth-child(3)::after{animation-delay:.45s}
}
@media (prefers-reduced-motion:reduce){
  html body[data-ui-page] *{transition-duration:.001ms!important;animation-duration:.001ms!important;animation-delay:0s!important}
}

/* 11 V2 BRAND SYSTEM: bolder display type, section rhythm, ink bands, the receipt chain spine, pinned scenes, live panels.
   Everything here is presentation. Pages read the same without script and without motion. Class names start with vd-. */
:root{
  --vd-gap:112px;
  --vd-band:oklch(.17 .012 165);--vd-band-fg:oklch(.96 .004 95);--vd-band-muted:oklch(.78 .012 165);--vd-band-line:oklch(.34 .014 165);
  --vd-band-surface:oklch(.215 .014 165);--vd-band-ledger:oklch(.8 .13 163);--vd-band-amber:oklch(.82 .13 80);--vd-band-fail:oklch(.74 .17 28);
  --vd-fs-display:clamp(2.5rem,5.3vw,4.75rem);--vd-fs-h1:clamp(2.4rem,4.6vw,4rem);--vd-fs-h2:clamp(1.9rem,3.5vw,3rem);--vd-fs-big:clamp(2rem,4.8vw,4.25rem);
}
@media (max-width:700px){:root{--vd-gap:72px}}
/* Highlighted bands. Light theme: deep ink on paper. Dark theme: the page is charcoal, so a band is a raised, lighter ink surface with a hairline edge and a top rule. */
html.dark{--vd-band:oklch(.285 .02 165);--vd-band-surface:oklch(.335 .022 165);--vd-band-line:oklch(.46 .022 165);--vd-band-edge:oklch(.52 .025 165)}
@media (prefers-color-scheme:dark){html:not(.light):not(.dark){--vd-band:oklch(.285 .02 165);--vd-band-surface:oklch(.335 .022 165);--vd-band-line:oklch(.46 .022 165);--vd-band-edge:oklch(.52 .025 165)}}
html.dark .vd-band,html.dark .vd-plan--feature{border-block:1px solid var(--vd-band-edge);box-shadow:inset 0 1px 0 oklch(1 0 0 / 10%)}
html.dark .vd-plan--feature{border:1px solid var(--vd-band-edge)}
html.dark .vd-band .vd-code{background:oklch(.2 .012 165);border-color:var(--vd-band-line)}
@media (prefers-color-scheme:dark){html:not(.light):not(.dark) .vd-band,html:not(.light):not(.dark) .vd-plan--feature{border-block:1px solid var(--vd-band-edge);box-shadow:inset 0 1px 0 oklch(1 0 0 / 10%)}html:not(.light):not(.dark) .vd-band .vd-code{background:oklch(.2 .012 165);border-color:var(--vd-band-line)}}
html body[data-ui-page] .vd-display{font-weight:690;line-height:1;letter-spacing:-.042em}
html body[data-ui-page] .vd-h1{font-weight:680;line-height:1.02;letter-spacing:-.04em}
html body[data-ui-page] .vd-h2{font-weight:660;line-height:1.05;letter-spacing:-.036em}
html body[data-ui-page] .vd-h3{font-weight:640;letter-spacing:-.02em}
html body[data-ui-page] .vd-big{margin:0;font-size:var(--vd-fs-big);font-weight:660;line-height:1.02;letter-spacing:-.045em;text-wrap:balance}
html body[data-ui-page] .vd-lede{font-weight:420}

/* Section rhythm: one gap everywhere. 112px at laptop width, 72px on a phone. */
.vd-sec{position:relative;padding-top:var(--vd-gap)}
.vd-sec--end{padding-bottom:var(--vd-gap)}
.vd-sec-head2{display:grid;gap:var(--vd-s3);max-width:46rem;margin-bottom:var(--vd-s6)}
.vd-sec-head2 .vd-eyebrow{margin:0}
.vd-sec-head2 .vd-lede{max-width:40rem}
.vd-top{padding-top:clamp(24px,3.6vw,48px)}

/* Full bleed ink band. Local tokens, so every component inside adapts. */
.vd-band{--vd-background:var(--vd-band);--vd-foreground:var(--vd-band-fg);--vd-muted-foreground:var(--vd-band-muted);--vd-surface:var(--vd-band-surface);--vd-muted:var(--vd-band-surface);
  --vd-border:var(--vd-band-line);--vd-border-strong:oklch(.5 .014 165);--vd-ledger:var(--vd-band-ledger);--vd-ledger-soft:oklch(.8 .13 163 / 14%);--vd-ledger-line:oklch(.8 .13 163 / 45%);
  --vd-amber:var(--vd-band-amber);--vd-amber-soft:oklch(.82 .13 80 / 14%);--vd-fail:var(--vd-band-fail);--vd-fail-soft:oklch(.74 .17 28 / 14%);
  position:relative;margin-top:var(--vd-gap);padding-block:var(--vd-gap);background:var(--vd-band);color:var(--vd-band-fg)}
.vd-band :is(h1,h2,h3,p,li,dt,dd,span,b,strong){color:inherit}
.vd-band .vd-lede,.vd-band .vd-body,.vd-band .vd-small{color:var(--vd-band-muted)}

/* The spine: the receipt chain drawn down the left edge. It fills as the page scrolls, one node per section, a seal at the end. */
.vd-spine-host{position:relative}
.vd-spine{position:absolute;z-index:3;top:0;bottom:0;left:clamp(8px,calc(50vw - 668px),60px);width:2px;background:var(--vd-border);pointer-events:none}
.vd-spine i{position:absolute;inset:0;background:var(--vd-ledger);transform-origin:top;transform:scaleY(var(--p,0))}
.vd-node{position:absolute;z-index:4;left:calc(clamp(8px,calc(50vw - 668px),60px) - 4px);top:var(--vd-gap);width:10px;height:10px;margin-top:-5px;border:2px solid var(--vd-border-strong);background:var(--vd-background);transition:background-color .24s var(--vd-ease),border-color .24s var(--vd-ease),transform .24s var(--vd-ease)}
.vd-node.is-on{border-color:var(--vd-ledger);background:var(--vd-ledger);transform:rotate(45deg)}
.vd-spine-end{position:absolute;z-index:4;left:calc(clamp(8px,calc(50vw - 668px),60px) - 15px);width:32px;height:32px;color:var(--vd-ledger);background:var(--vd-background);border-radius:50%}
.vd-spine-end svg{width:32px;height:32px;display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@supports (animation-timeline:scroll()){
  @media (prefers-reduced-motion:no-preference){.vd-spine i{animation:vd-spine linear both;animation-timeline:scroll(root)}}
}
@keyframes vd-spine{from{transform:scaleY(0)}to{transform:scaleY(1)}}

/* Reveal on entry. Content is visible by default; script marks what to animate. */
@media (prefers-reduced-motion:no-preference){
  html.js [data-reveal]:not([data-shown]){opacity:0;transform:translateY(16px)}
  html.js [data-reveal]{transition:opacity .6s var(--vd-ease),transform .6s var(--vd-ease);transition-delay:calc(var(--d,0) * 90ms)}
}

/* Words that light up as you scroll through a statement. */
.vd-words .w{transition:opacity .25s linear,color .25s linear}
html.js .vd-words .w{color:color-mix(in oklab,var(--vd-foreground) 52%,var(--vd-background))}
html.js .vd-words .w.is-lit{color:var(--vd-foreground)}

/* Segmented switch */
.vd-switch{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid var(--vd-border-strong);border-radius:var(--vd-r-card);background:var(--vd-surface)}
.vd-switch button{height:40px;padding:0 16px;border:0;border-radius:calc(var(--vd-r-card) - 3px);background:transparent;color:var(--vd-muted-foreground);font:560 .9375rem/1 var(--vd-sans);letter-spacing:-.01em;cursor:pointer;transition:background-color .2s var(--vd-ease),color .2s var(--vd-ease)}
.vd-switch button:hover{color:var(--vd-foreground)}
.vd-switch button[aria-pressed="true"],.vd-switch button[aria-selected="true"]{background:var(--vd-foreground);color:var(--vd-background)}

/* Pinned scene: left text and switcher, right stage that changes as you scroll. */
.vd-scene{position:relative}
.vd-scene-pin{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:var(--vd-s7);align-items:center}
.vd-scene-text{display:grid;gap:var(--vd-s3)}
.vd-scene-steps{display:grid;gap:0;margin-top:var(--vd-s4);border-top:1px solid var(--vd-border)}
.vd-scene-step{display:grid;grid-template-columns:36px 1fr;gap:var(--vd-s2) var(--vd-s3);padding:var(--vd-s3) 0;border-bottom:1px solid var(--vd-border);cursor:pointer;opacity:.6;transition:opacity .25s var(--vd-ease)}
.vd-scene-step:hover,.vd-scene-step.is-on{opacity:1}
.vd-scene-step .n{font:600 .75rem/1.9 var(--vd-mono);color:var(--vd-muted-foreground)}
.vd-scene-step.is-on .n{color:var(--vd-ledger)}
.vd-scene-step h3{margin:0;font-size:1.25rem;font-weight:640;letter-spacing:-.02em}
.vd-scene-step p{grid-column:2;margin:0;font-size:.98rem;line-height:1.55;color:var(--vd-muted-foreground);display:none}
.vd-scene-step.is-on p{display:block}
.vd-scene-stage{position:relative;display:grid;min-width:0}
.vd-scene-panel{grid-area:1/1;min-width:0;visibility:hidden;opacity:0;transform:translateY(10px);transition:opacity .35s var(--vd-ease),transform .35s var(--vd-ease),visibility 0s .35s}
.vd-scene-panel.is-on{visibility:visible;opacity:1;transform:none;transition-delay:0s}
html:not(.js) .vd-scene-panel{visibility:visible;opacity:1;transform:none;grid-area:auto;margin-bottom:var(--vd-s4)}
html:not(.js) .vd-scene-step p{display:block}
@media (min-width:900px) and (prefers-reduced-motion:no-preference){
  html.js .vd-scene{height:calc(var(--n,3) * 62vh + 38vh)}
  html.js .vd-scene-pin{position:sticky;top:calc(64px + 28px);min-height:min(560px,calc(100vh - 64px - 56px))}
}
@media (max-width:899px){.vd-scene-pin{grid-template-columns:1fr;gap:var(--vd-s5)}}

/* Count up numbers */
.vd-nums{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:0 var(--vd-s4)}
.vd-numcell{display:grid;gap:var(--vd-s2);align-content:start;padding:var(--vd-s4) 0 var(--vd-s5);border-top:1px solid var(--vd-border-strong);grid-column:span 4}
.vd-numcell b{display:block;font-size:clamp(2.6rem,6vw,5rem);font-weight:690;line-height:1;letter-spacing:-.05em;font-variant-numeric:tabular-nums;color:var(--vd-foreground)}
.vd-numcell b small{font-size:.38em;font-weight:560;letter-spacing:-.01em;color:var(--vd-muted-foreground);margin-left:.25em}
.vd-numcell>span{font-size:1rem;line-height:1.5;color:var(--vd-muted-foreground);max-width:26rem}
.vd-numcell--wide{grid-column:span 6}
@media (max-width:900px){.vd-numcell,.vd-numcell--wide{grid-column:span 12}}

/* Compact live run panel (hero) */
.vd-live{box-sizing:border-box;border:1px solid var(--vd-border-strong);border-radius:var(--vd-r-hero);background:var(--vd-surface);box-shadow:0 24px 48px -32px var(--vd-shadow-tint);overflow:hidden;min-width:0}
.vd-live-head{display:flex;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid var(--vd-border);background:var(--vd-muted)}
.vd-live-head .t{flex:1;min-width:0;font:600 .8125rem/1.3 var(--vd-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vd-live-dot{width:8px;height:8px;border-radius:50%;background:var(--vd-ledger)}
.vd-live-cnt{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--vd-border);margin:0}
.vd-live-cnt div{padding:12px 18px;border-left:1px solid var(--vd-border)}
.vd-live-cnt div:first-child{border-left:0}
.vd-live-cnt dt{font:600 .6875rem/1.2 var(--vd-sans);letter-spacing:.1em;text-transform:uppercase;color:var(--vd-muted-foreground)}
.vd-live-cnt dd{margin:2px 0 0;font:660 1.75rem/1.1 var(--vd-sans);letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.vd-live-cnt .ok dd{color:var(--vd-ledger)}.vd-live-cnt .held dd{color:var(--vd-amber)}.vd-live-cnt .bad dd{color:var(--vd-fail)}
.vd-live-list{list-style:none;margin:0;padding:0;display:grid}
.vd-live-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:2px 12px;align-items:center;padding:10px 18px;border-bottom:1px solid var(--vd-border)}
.vd-live-row .vd-seal{width:20px;height:20px}
.vd-live-row b{font:620 .9375rem/1.3 var(--vd-sans);letter-spacing:-.01em}
.vd-live-row .h{grid-column:2/4;font:500 .75rem/1.3 var(--vd-mono);color:var(--vd-muted-foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vd-live-row .h i{font-style:normal;color:var(--vd-foreground)}
.vd-live-row.is-new{animation:vd-stamp .5s var(--vd-ease) both}
.vd-live-foot{display:flex;align-items:center;gap:8px;padding:12px 18px;font:500 .75rem/1.4 var(--vd-mono);color:var(--vd-muted-foreground);background:var(--vd-muted)}
.vd-live-foot .vd-seal{width:18px;height:18px;color:var(--vd-ledger)}
@media (prefers-reduced-motion:no-preference){.vd-live-dot{animation:vd-pulse 2s var(--vd-ease) infinite}}
@keyframes vd-pulse{0%{box-shadow:0 0 0 0 var(--vd-ledger-line)}70%,100%{box-shadow:0 0 0 8px transparent}}

/* FAQ */
.vd-faq{border-top:1px solid var(--vd-border-strong)}
.vd-faq details{border-bottom:1px solid var(--vd-border)}
.vd-faq summary{list-style:none;display:flex;justify-content:space-between;gap:var(--vd-s4);padding:var(--vd-s4) 0;font:620 1.1875rem/1.35 var(--vd-sans);letter-spacing:-.015em;cursor:pointer}
.vd-faq summary::-webkit-details-marker{display:none}
.vd-faq summary::after{content:"+";font:400 1.5rem/1 var(--vd-sans);color:var(--vd-muted-foreground);transition:transform .2s var(--vd-ease)}
.vd-faq details[open] summary::after{transform:rotate(45deg)}
.vd-faq details p{margin:0;padding:0 0 var(--vd-s4);max-width:44rem;color:var(--vd-muted-foreground);line-height:1.65}

/* Terminal lines that type in */
.vd-term-line{display:block}
html.js .vd-code[data-type]:not(.is-typed) .vd-term-line{opacity:0}
@media (prefers-reduced-motion:no-preference){html.js .vd-code[data-type].is-typed .vd-term-line{animation:vd-stamp .4s var(--vd-ease) both;animation-delay:calc(var(--i,0) * 220ms)}}

/* QA: touch targets at phone width */
@media (max-width:700px){
  html body[data-ui-page] .vd-copy{height:32px}
  html body[data-ui-page] .vd-link--plain{min-height:32px;display:inline-flex;align-items:center}
}
