/* VESEDI site. Shares DiligenceVM's palette and type; fonts are served from
   this site (see fonts/README.md). Poppins Medium is used for the wordmark. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/assets/fonts/manrope-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-400-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-500-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-600-latin.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --navy: #061d49;
  --navy-2: #0b2756;
  --navy-line: #24467f;
  --blue: #0055ff;
  --blue-ink: #0a46c7;
  --blue-soft: #a4c1ff;
  --pale: #eaf1ff;
  --ink: #17243a;
  --muted: #5d6d83;
  --line: #d9e1ea;
  --wash: #f3f6fa;
  --ok: #176947;
  --ok-wash: #e9f6ef;
  --open: #8a5510;
  --open-wash: #fdf4e5;
  --danger: #b42318;
  --danger-wash: #fdeceb;
  --font: "Poppins", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --display: "Manrope", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.62 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, pre, fieldset { margin: 0; }
ul, ol { padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); letter-spacing: -.02em; line-height: 1.15; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
::selection { background: #9dbbff; color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: .86em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -60px; left: 12px; z-index: 50; padding: 9px 13px; background: #fff; color: var(--navy); font-weight: 600; }
.skip:focus { top: 12px; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }

/* ---- Buttons and links ---------------------------------------------------- */

.button { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 3px; font: 600 14px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s ease, color .15s ease; }
.button span { font-weight: 400; }
.button-light { background: #fff; color: var(--navy); }
.button-light:hover { background: #dfeaff; color: var(--navy); }
.button-dark { background: var(--navy); color: #fff; }
.button-dark:hover { background: var(--blue); color: #fff; }
.text-action { color: inherit; font-weight: 600; font-size: 14px; text-decoration: underline; text-decoration-color: var(--blue-soft); }
.text-action:hover { color: inherit; text-decoration-color: currentColor; }

/* ---- Masthead ------------------------------------------------------------- */

.mast { background: var(--navy); color: #fff; }
.mast :focus-visible, .hero :focus-visible, .section-navy :focus-visible, .foot :focus-visible { outline-color: var(--blue-soft); }
.mast-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; min-height: 76px; border-bottom: 1px solid rgba(255,255,255,.18); }
.brand { display: inline-flex; align-items: center; gap: 11px; padding: 2px 4px; color: #fff; text-decoration: none; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand-mark { display: block; flex: none; width: auto; height: 24px; }
.brand-word { font: 500 26px/1 "Poppins", var(--font); }
.brand-small .brand-mark { height: 18px; }
.brand-small .brand-word { font-size: 20px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; margin-left: auto; }
.site-nav a { color: #dce8ff; font-size: 13px; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: #fff; }
.site-nav .nav-cta { padding: 8px 14px; border: 1px solid rgba(255,255,255,.45); border-radius: 3px; color: #fff; }
.site-nav .nav-cta:hover { background: #fff; color: var(--navy); }
.menu-toggle { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .15s ease, background-color .15s ease; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
[aria-expanded="true"] > .menu-icon { background: transparent; }
[aria-expanded="true"] > .menu-icon::before { transform: translateY(5px) rotate(45deg); }
[aria-expanded="true"] > .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .menu-icon, .menu-icon::before, .menu-icon::after { transition: none; } }

/* ---- Hero ----------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding: 88px 0 104px; background: radial-gradient(circle at 80% 30%, #173e7e 0, #0b2756 34%, #061d49 66%, #041632 100%); color: #dce7fa; }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none; background-image: linear-gradient(rgba(145,185,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(145,185,255,.3) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, transparent 30%, black 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.hero h1 { max-width: 13ch; color: #fff; font-size: clamp(38px, 5.4vw, 68px); font-weight: 600; line-height: 1.04; letter-spacing: -.03em; }
.hero h1 em { color: #a9c7ff; font-style: normal; }
.lede { max-width: 54ch; margin-top: 26px; color: #dce7fa; font-size: 18px; }
.lede strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; color: #fff; }
.hero-note { margin-top: 22px; color: #a9c0e6; font-size: 13px; }
.hero-steps { display: grid; list-style: none; border-top: 1px solid rgba(255,255,255,.3); counter-reset: step; }
.hero-steps li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 15px; counter-increment: step; }
.hero-steps li::before { content: counter(step); position: absolute; left: 0; top: 16px; color: #a9c7ff; font: 600 13px/1.85 var(--display); }
.hero-steps strong { color: #fff; font-weight: 600; }
/* Desktop: the hero fills the window below the 76px masthead, content centred. */
@media (min-width: 901px) and (min-height: 560px) {
  .hero { display: flex; align-items: center; min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); padding: 72px 0; }
}

/* ---- Sections ------------------------------------------------------------- */

.section { padding: 96px 0; }
.section-wash { background: var(--wash); }
.section-navy { background: var(--navy); color: #dce7fa; }
.section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }
.section-navy a:not(.button) { color: #fff; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 64px; align-items: end; margin-bottom: 44px; }
.section-head h2, .form-grid h2, .sidecar-grid h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 600; }
.section-head p { color: var(--muted); font-size: 16px; }
.section-lede { max-width: 56ch; margin-top: 16px; font-size: 17px; }
.section:not(.section-navy) .section-lede { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--navy); }
.grid-3 article { padding: 26px 28px 8px 0; }
.grid-3 article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.grid-3 h3 { font-size: 19px; font-weight: 700; }
.grid-3 p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---- Demonstration -------------------------------------------------------- */

.demo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
.demo-panel { min-width: 0; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(6,29,73,.06); }
.demo-recipient { background: #fbfcff; border-color: #c9d8f5; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.panel-head h3 { font-size: 17px; font-weight: 700; }
.tag { flex: none; padding: 1px 9px; border-radius: 999px; background: var(--wash); color: var(--muted); font-size: 11px; font-weight: 600; }
.tag-blue { background: var(--pale); color: var(--blue-ink); }
.fingerprint { margin: 6px 0 14px; color: var(--muted); font-size: 12px; }
.fields { display: grid; padding: 0; border: 0; border-top: 1px solid var(--line); }
.fields label { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 2px; border-bottom: 1px solid #eef2f6; font-size: 14px; cursor: pointer; }
.fields input { margin: 0; accent-color: var(--blue); }
.fields input:disabled + .f-key { cursor: default; }
.f-key { overflow-wrap: anywhere; color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
.f-val { overflow-wrap: anywhere; color: var(--navy); font-weight: 500; }
.received { display: grid; list-style: none; border-top: 1px solid var(--line); }
.received li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 2px; border-bottom: 1px solid #eef2f6; font-size: 14px; }
.received .f-key { grid-column: 1 / -1; }
.received .empty { grid-template-columns: 1fr; color: var(--muted); }
.check { align-self: center; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.check.ok { background: var(--ok-wash); color: var(--ok); }
.check.bad { background: var(--danger-wash); color: var(--danger); }
.withheld { margin-top: 12px; color: var(--muted); font-size: 13px; }
.tamper { display: flex; gap: 8px; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink); font-size: 13px; cursor: pointer; }
.tamper[hidden] { display: none; }
.fine { margin-top: 14px; color: var(--muted); font-size: 12.5px; }
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.limits > div { padding: 22px 24px; border-left: 3px solid var(--ok); background: var(--ok-wash); }
.limits > div + div { border-left-color: #d9a54a; background: var(--open-wash); }
.limits h3 { font-size: 16px; font-weight: 700; }
.limits ul { display: grid; gap: 6px; margin: 10px 0 0 18px; font-size: 15px; }

/* ---- Sidecar -------------------------------------------------------------- */

.sidecar-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25); }
.split h3 { font-size: 16px; font-weight: 700; }
.split ul { display: grid; gap: 6px; margin: 12px 0 0 18px; font-size: 15px; }
.note { margin-top: 12px; font-size: 14px; }
.stays { margin-top: 30px; padding: 16px 18px; border: 1px solid var(--navy-line); border-radius: var(--radius); background: var(--navy-2); font-size: 14px; }
.stays strong { color: #fff; }
.download { display: grid; gap: 14px; padding: 28px; border: 1px solid var(--navy-line); border-radius: var(--radius); background: var(--navy-2); }
.download h3 { font-size: 22px; font-weight: 600; }
.download h4 { margin-top: 8px; font-size: 14px; font-weight: 700; }
.download-meta { color: #a9c0e6; font-size: 13px; }
.download .button { justify-self: start; }
.checksum { overflow-wrap: anywhere; color: #a9c0e6; font-size: 12px; }
.download pre { overflow-x: auto; padding: 14px 16px; border-radius: 3px; background: #041632; color: #e6eeff; font-size: 13px; line-height: 1.7; }
.download p { font-size: 14px; }

/* ---- Forms ---------------------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.soon { display: inline-block; margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: var(--pale); color: var(--blue-ink); font: 600 12px/1.4 var(--font); letter-spacing: 0; vertical-align: middle; }
.form { display: grid; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.form h3 { font-size: 19px; font-weight: 700; }
.field { display: grid; gap: 7px; }
.field > span { color: var(--navy); font-size: 14px; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; }
.field small { color: var(--muted); font-size: 13px; }
.field .count { font-variant-numeric: tabular-nums; }
.field .count.over { color: var(--danger); font-weight: 600; }
.field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b9c6d6; border-radius: 3px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.form-note { color: var(--muted); font-size: 14px; }
.form .button { justify-self: start; }
.notice { padding: 12px 14px; border-radius: 3px; font-size: 14px; font-weight: 500; }
.notice-ok { background: var(--ok-wash); color: var(--ok); }
.notice-error { background: var(--danger-wash); color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Footer --------------------------------------------------------------- */

.foot { padding: 48px 0 56px; background: var(--navy); color: #a9c0e6; font-size: 14px; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: auto 1fr; gap: 20px 48px; align-items: start; }
.foot-grid p { margin-top: 12px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; }
.foot nav a { font-weight: 600; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot small { grid-column: 1 / -1; max-width: 90ch; padding-top: 20px; border-top: 1px solid var(--navy-line); font-size: 12.5px; }

/* ---- Narrow screens ------------------------------------------------------- */

@media (max-width: 900px) {
  .shell { width: calc(100% - 32px); }
  .mast-inner { min-height: 64px; padding: 10px 0; }
  .site-nav { flex-direction: column; align-items: stretch; flex: 1 1 100%; gap: 0; margin: 0; padding: 6px 0 10px; }
  .site-nav a { padding: 11px 4px; border-top: 1px solid rgba(255,255,255,.1); font-size: 15px; }
  .site-nav .nav-cta { margin-top: 10px; padding: 11px 14px; text-align: center; }
  .mast.nav-js .menu-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; margin-left: auto; padding: 0 13px; border: 1px solid var(--navy-line); border-radius: var(--radius); background: var(--navy-2); color: #fff; font: 600 14px/1 var(--font); cursor: pointer; }
  .mast.nav-js .menu-toggle[aria-expanded="true"] { background: #173e7e; }
  .mast.nav-js:not(.nav-open) .site-nav { display: none; }
  .hero { padding: 56px 0 64px; }
  .hero-grid, .section-head, .sidecar-grid, .form-grid, .demo, .limits { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .section-head { gap: 14px; margin-bottom: 30px; }
  .section { padding: 64px 0; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-3 article, .grid-3 article + article { padding: 22px 0 20px; border-left: 0; border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .lede { font-size: 17px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot nav { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .fields label { grid-template-columns: 22px minmax(0, 1fr); }
  .fields .f-val { grid-column: 2; }
  .form, .download, .demo-panel { padding: 20px 16px; }
}

/* The ALTCHA widget works out of sight; spam-check.js reports progress in the form. */
altcha-widget { display: none; }
