/* Cybernip eSign portal: brand tokens and components.
   Tokens are copied verbatim from the Cybernip website (brand.md): monochrome neutral palette, the only colour is the link blue.
   Fonts are self-hosted (SIL OFL): a page reached by scanning a QR code must not call third parties. */

@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --white: #FFFFFF; --fog: #F5F5F7; --mist: #E8E8ED; --line: #D2D2D7; --grey: #6E6E73; --ink: #1D1D1F;
  --black: #0A0A0B; --black-raise: #161618; --line-dark: rgba(255,255,255,0.14); --grey-dark: #A1A1A6; --link: #0066CC;
  --body: #3A3A3F;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1200px; --gutter: clamp(22px, 5vw, 64px);
  --ease: cubic-bezier(.2,.7,.2,1);
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }   /* author display rules must never defeat the hidden attribute */
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: clamp(40px, 6.2vw, 84px); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 52px); max-width: 20ch; }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 980px; z-index: 100; font-size: 14px; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.grey { color: var(--grey); }

section { position: relative; padding-block: clamp(64px, 8vw, 112px); }
.lead { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: var(--grey); max-width: 56ch; }
.index { font-size: 13px; color: var(--grey); letter-spacing: 0.02em; margin-bottom: 26px; display: flex; gap: 14px; align-items: center; }
.index::after { content: ""; width: 40px; height: 1px; background: var(--line); }
.dark { background: var(--black); color: var(--white); }
.dark .lead, .dark .index, .dark .grey { color: var(--grey-dark); }
.dark .index::after { background: var(--line-dark); }
.dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%); }
.dark .wrap { position: relative; }
.fog { background: var(--fog); }

/* motion: entries rise; always disabled for reduced motion */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: .1s; } .js .rv-d2 { transition-delay: .2s; } .js .rv-d3 { transition-delay: .3s; } .js .rv-d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 980px; font: 500 15px/1 var(--font); border: 1px solid transparent; cursor: pointer; transition: transform .15s, background-color .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ink { background: var(--ink); color: var(--white); } .btn-ink:hover { background: #000; }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; } .btn-line:hover { border-color: var(--ink); }
.dark .btn-ink { background: var(--white); color: var(--ink); } .dark .btn-ink:hover { background: var(--mist); }
.dark .btn-line { border-color: var(--line-dark); color: var(--white); } .dark .btn-line:hover { border-color: var(--white); }
.btn-sm { padding: 9px 15px; font-size: 14px; }
.textlink { color: var(--link); font-weight: 500; } .textlink:hover { text-decoration: underline; }
.icon { width: 16px; height: 16px; flex: 0 0 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav .brand { display: flex; align-items: center; gap: 14px; }
.nav .brand img { height: 24px; width: auto; }
.nav .brand span { font-size: 13px; color: var(--grey); padding-left: 14px; border-left: 1px solid var(--line); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a:not(.btn) { opacity: .72; transition: opacity .15s; } .nav-links a:not(.btn):hover { opacity: 1; }
.who { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--grey); border: 1px solid var(--line); border-radius: 980px; padding: 6px 14px; max-width: 280px; }
.who b { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: 0 0 7px; }
@media (max-width: 640px) { .nav .brand span, .nav-links a:not(.btn) { display: none; } .who { max-width: 190px; } }

/* hero */
.hero { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 72px); }
.hero .wrap { display: grid; gap: 40px; }
@media (min-width: 900px) { .hero .wrap.split { grid-template-columns: auto 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; } }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 24px; }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.live { margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; color: var(--grey); border: 1px solid var(--line); border-radius: 980px; padding: 9px 16px; max-width: 100%; }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: pulse 2.2s ease-in-out infinite; flex: 0 0 7px; }
.live span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* seal: monochrome, state carried by shape (filled / outlined / dashed), never by colour alone */
.seal { width: clamp(132px, 17vw, 208px); aspect-ratio: 1; flex: none; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal .ring-outer { fill: none; stroke: var(--line); stroke-width: 1; }
.seal .ticks { fill: none; stroke: var(--grey); stroke-width: 1.2; stroke-dasharray: 1 7.9; opacity: .75; transform-origin: 100px 100px; animation: spin 60s linear infinite; }
.seal .disc { fill: var(--ink); transform-origin: 100px 100px; animation: pop .7s var(--ease) both; }
.seal .mark { fill: none; stroke: var(--white); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 130; stroke-dashoffset: 130; animation: draw .7s .35s var(--ease) forwards; }
.seal.is-invalid .disc, .seal.is-missing .disc, .seal.is-error .disc { fill: var(--white); stroke: var(--ink); stroke-width: 3; }
.seal.is-missing .disc, .seal.is-error .disc { stroke-dasharray: 3 7; }
.seal.is-invalid .mark, .seal.is-missing .mark, .seal.is-error .mark { stroke: var(--ink); }
.seal.is-loading .disc { fill: var(--mist); animation: breathe 1.6s ease-in-out infinite; }
.seal.is-loading .mark { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.seal-sm { width: 44px; } .seal-sm .ticks, .seal-sm .ring-outer { display: none; }

/* timeline */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: step; }
.step { position: relative; padding: 26px 0 26px 44px; border-bottom: 1px solid var(--line); }
.step::before { content: ""; position: absolute; left: 0; top: 31px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px var(--white), 0 0 0 6px var(--line); }
.step.is-pending::before { background: var(--white); border: 1.5px solid var(--grey); }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--grey); font-size: 15.5px; max-width: 44ch; }
.step time, .step .when { display: block; margin-top: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .step { padding: 52px 28px 30px 0; border-bottom: 0; }
  .step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
  .step::before { left: 0; top: 24px; }
  .step + .step::before { left: 28px; }
  .step::after { content: attr(data-n); position: absolute; right: 24px; top: 20px; font-size: 13px; color: var(--grey); letter-spacing: .02em; }
  .step:last-child::after { right: 0; }
}

/* facts: hairline grid like the Cybernip site cards */
.facts { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); margin: 0; }
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .facts.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.fact { background: var(--fog); padding: 26px 28px 30px; display: grid; gap: 8px; align-content: start; transition: background-color .25s; min-width: 0; }
.fact:hover { background: var(--white); }
.fact dt { font-size: 13px; color: var(--grey); letter-spacing: .02em; }
.fact dd { margin: 0; font-size: 18px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.fact dd.mono { font-size: 13px; line-height: 1.6; }
.fact .sub { font-size: 14px; color: var(--grey); }
.fact.wide { grid-column: 1 / -1; }
.copy { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; background: none; border: 1px solid var(--line); border-radius: 980px; padding: 5px 12px; font: 400 12.5px var(--font); color: var(--ink); cursor: pointer; justify-self: start; transition: border-color .2s; }
.copy:hover { border-color: var(--ink); }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; color: var(--ink); background: var(--white); white-space: nowrap; }
.chip.solid { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip.dashed { border-style: dashed; color: var(--grey); }

/* printed-copy check */
.printed { border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; display: grid; gap: 14px; background: var(--white); }
.printed .legend { font-family: var(--mono); font-size: 13.5px; background: var(--fog); border-radius: 8px; padding: 14px 16px; overflow-wrap: anywhere; line-height: 1.7; }

/* drop zone (dark section) */
.drop { border: 1px dashed var(--line-dark); border-radius: 14px; padding: clamp(34px, 5vw, 56px) 24px; text-align: center; display: grid; gap: 14px; justify-items: center; background: var(--black-raise); transition: border-color .2s, background-color .2s; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--white); background: #1c1c1f; }
.drop .big { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; font-weight: 500; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.result { margin-top: 22px; border: 1px solid var(--line-dark); border-radius: 14px; padding: 24px 26px; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; background: var(--black-raise); }
.result h3 { font-size: 22px; }
.result p { color: var(--grey-dark); font-size: 15.5px; grid-column: 2; }
.result .mono { grid-column: 1 / -1; color: var(--grey-dark); margin-top: 8px; overflow-wrap: anywhere; font-size: 12.5px; }
.result .seal { width: 52px; } .result .seal .ring-outer, .result .seal .ticks { display: none; }
.result .seal .disc { fill: var(--white); } .result .seal .mark { stroke: var(--ink); }
.result.no .seal .disc { fill: var(--black-raise); stroke: var(--white); stroke-width: 3; } .result.no .seal .mark { stroke: var(--white); }
.progress { width: min(360px, 100%); height: 4px; background: var(--line-dark); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--white); transition: width .2s linear; }

/* skeleton */
.sk { background: linear-gradient(90deg, var(--mist) 25%, var(--fog) 50%, var(--mist) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-line { height: 14px; margin: 10px 0; } .sk-title { height: clamp(40px, 6vw, 72px); width: min(560px, 100%); } .sk-block { height: 118px; }

/* table (secure portal) */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 400; font-size: 13px; color: var(--grey); letter-spacing: .02em; padding: 0 16px 14px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { cursor: pointer; transition: background-color .2s; }
.table tbody tr:hover { background: var(--fog); }
.table tbody tr:hover td:first-child { box-shadow: -14px 0 0 var(--fog); }
.table .name { font-weight: 500; letter-spacing: -.01em; }
.table .id { font-family: var(--mono); font-size: 12.5px; color: var(--grey); }
@media (max-width: 760px) { .table thead { display: none; } .table, .table tbody, .table tr, .table td { display: block; } .table tr { padding: 16px 0; border-bottom: 1px solid var(--line); } .table td { border: 0; padding: 3px 0; } }
.search { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.search input { flex: 1 1 240px; font: 400 15px var(--font); padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); }
.search input:focus { border-color: var(--ink); outline: none; }
.empty { border: 1px solid var(--line); border-radius: 14px; padding: 48px 28px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty h3 { font-size: 24px; }

/* downloads */
.downloads { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 760px) { .downloads { grid-template-columns: repeat(3, 1fr); } }
.dl { background: var(--fog); padding: 26px 28px 28px; display: grid; gap: 14px; align-content: space-between; min-height: 190px; transition: background-color .25s; }
.dl:hover { background: var(--white); }
.dl h4 { font-size: 19px; font-weight: 500; letter-spacing: -.015em; } .dl p { color: var(--grey); font-size: 15px; margin-top: 6px; }
.dl.off { opacity: .55; }

/* markdown body (privacy notice) */
.doc { max-width: 74ch; color: var(--body); }
.doc h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; color: var(--ink); margin-bottom: 20px; }
.doc h2 { font-size: clamp(22px, 2.4vw, 30px); max-width: none; margin: 48px 0 14px; color: var(--ink); }
.doc p, .doc li { font-size: 17px; margin-bottom: 14px; } .doc ul, .doc ol { padding-left: 22px; }
.doc blockquote { margin: 0 0 24px; padding: 14px 18px; background: var(--fog); border-radius: 8px; color: var(--grey); font-size: 15.5px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 18px 0 26px; } .doc th, .doc td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; } .doc th { color: var(--grey); font-weight: 400; font-size: 13px; }
.doc code { font-family: var(--mono); font-size: .88em; background: var(--fog); padding: 2px 6px; border-radius: 4px; }
.doc a { color: var(--link); } .doc a:hover { text-decoration: underline; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--white); border-radius: 980px; padding: 11px 20px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); z-index: 90; max-width: calc(100vw - 40px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* inline form (landing) */
.lookup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 640px; margin-top: 34px; }
.lookup input { flex: 1 1 280px; font: 400 16px var(--mono); padding: 14px 18px; border: 1px solid var(--line); border-radius: 980px; background: var(--white); color: var(--ink); }
.lookup input:focus { border-color: var(--ink); outline: none; }
.hint { font-size: 14px; color: var(--grey); margin-top: 12px; }
.err { font-size: 14px; color: var(--ink); margin-top: 12px; border-left: 2px solid var(--ink); padding-left: 12px; }

/* cards row (landing) */
.cards { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--fog); padding: 34px 32px 38px; display: grid; gap: 12px; align-content: start; transition: background-color .25s; }
.card:hover { background: var(--white); }
.card .n { font-size: 13px; color: var(--grey); letter-spacing: .02em; }
.card h3 { font-size: 22px; } .card p { color: var(--grey); font-size: 16px; }

/* footer */
footer { padding: 44px 0 40px; font-size: 13px; color: var(--grey); border-top: 1px solid var(--line); }
footer .wrap { display: grid; gap: 24px; }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
footer img { height: 22px; width: auto; margin-bottom: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a:hover { color: var(--ink); }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

/* spacing helpers used by the views */
.body-gap { margin-top: clamp(36px, 5vw, 64px); }
.section-gap { height: clamp(28px, 4vw, 48px); }
.hero .wrap.split > div:last-child { min-width: 0; }
.printed + .printed { margin-top: 18px; }
.stack > * + * { margin-top: clamp(28px, 4vw, 48px); }
.noscript { padding-block: 24px; }

/* rhythm */
h2 + .lead { margin-top: 20px; }
.facts + .printed { margin-top: 28px; }
@media (min-width: 900px) { .steps.three { grid-template-columns: repeat(3, 1fr); } }

/* an odd last fact spans the row instead of leaving a grey hole in the hairline grid */
@media (min-width: 760px) { .facts:not(.cols-3) > .fact:last-child:nth-child(odd) { grid-column: 1 / -1; } }
