/* home.css: the home hero, locked 2026-09-29 (docs/design/hero-conveyor-v7-vertical.html).
   Addresses fall through a horizontal scan gate and come out as .nim plates. The raw address,
   the scan and the plate are ONE box (nh-bx) drawn on three clipped lanes, so every row, edge and
   the identicon meet their twin exactly at the gate lines. Everything is prefixed nh- because the
   other pages already own .card, .search and .result. px only: @nimiq/style sets 1rem = 8px. */
:root {
  --nh-navy: #1f2348;
  --nh-deep: #260133;
  --nh-lb: #0582ca;
  --nh-blue: #265dd7;
  --nh-green: #21bca5;
  --nh-gold: #e9b213;
  --nh-w60: rgba(255, 255, 255, 0.66);
  --nh-w40: rgba(255, 255, 255, 0.45);
  --nh-bw: 280px;
  --nh-bh: 96px;
  --nh-gap: 56px;
}

body.home .page { padding: 0; gap: 0; justify-content: flex-start; }
body.home .foot { padding: 28px 16px 36px; }

.nh-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #fff;
  background-image: radial-gradient(100% 100% at bottom right, var(--nh-deep), var(--nh-navy));
}
.nh-honey {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2235.22%22%20height%3D%2221.00%22%20viewBox%3D%220%200%2035.22%2021.00%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%220.8%22%3E%3Cpath%20transform%3D%22translate%28-15.61%20-8.50%29%22%20d%3D%22M19.964%208.156%2015.758.844A1.69%201.69%200%200014.299%200H5.887c-.6%200-1.156.32-1.456.844L.225%208.156c-.3.523-.3%201.165%200%201.688l4.206%207.312c.3.523.856.844%201.456.844h8.412c.6%200%201.156-.32%201.456-.844l4.206-7.312a1.69%201.69%200%2000.003-1.688%22/%3E%3Cpath%20transform%3D%22translate%28-15.61%2012.50%29%22%20d%3D%22M19.964%208.156%2015.758.844A1.69%201.69%200%200014.299%200H5.887c-.6%200-1.156.32-1.456.844L.225%208.156c-.3.523-.3%201.165%200%201.688l4.206%207.312c.3.523.856.844%201.456.844h8.412c.6%200%201.156-.32%201.456-.844l4.206-7.312a1.69%201.69%200%2000.003-1.688%22/%3E%3Cpath%20transform%3D%22translate%28-15.61%2033.50%29%22%20d%3D%22M19.964%208.156%2015.758.844A1.69%201.69%200%200014.299%200H5.887c-.6%200-1.156.32-1.456.844L.225%208.156c-.3.523-.3%201.165%200%201.688l4.206%207.312c.3.523.856.844%201.456.844h8.412c.6%200%201.156-.32%201.456-.844l4.206-7.312a1.69%201.69%200%2000.003-1.688%22/%3E%3Cpath%20transform%3D%22translate%282.00%20-19.00%29%22%20d%3D%22M19.964%208.156%2015.758.844A1.69%201.69%200%200014.299%200H5.887c-.6%200-1.156.32-1.456.844L.225%208.156c-.3.523-.3%201.165%200%201.688l4.206%207.312c.3.523.856.844%201.456.844h8.412c.6%200%201.156-.32%201.456-.844l4.206-7.312a1.69%201.69%200%2000.003-1.688%22/%3E%3Cpath%20transform%3D%22translate%282.00%202.00%29%22%20d%3D%22M19.964%208.156%2015.758.844A1.69%201.69%200%200014.299%200H5.887c-.6%200-1.156.32-1.456.844L.225%208.156c-.3.523-.3%201.165%200%201.688l4.206%207.312c.3.523.856.844%201.456.844h8.412c.6%200%201.156-.32%201.456-.844l4.206-7.312a1.69%201.69%200%2000.003-1.688%22/%3E%3Cpath%20transform%3D%22translate%282.00%2023.00%29%22%20d%3D%22M19.964%208.156%2015.758.844A1.69%201.69%200%200014.299%200H5.887c-.6%200-1.156.32-1.456.844L.225%208.156c-.3.523-.3%201.165%200%201.688l4.206%207.312c.3.523.856.844%201.456.844h8.412c.6%200%201.156-.32%201.456-.844l4.206-7.312a1.69%201.69%200%2000.003-1.688%22/%3E%3Cpath%20transform%3D%22translate%2819.61%20-8.50%29%22%20d%3D%22M19.964%208.156%2015.758.844A1.69%201.69%200%200014.299%200H5.887c-.6%200-1.156.32-1.456.844L.225%208.156c-.3.523-.3%201.165%200%201.688l4.206%207.312c.3.523.856.844%201.456.844h8.412c.6%200%201.156-.32%201.456-.844l4.206-7.312a1.69%201.69%200%2000.003-1.688%22/%3E%3Cpath%20transform%3D%22translate%2819.61%2012.50%29%22%20d%3D%22M19.964%208.156%2015.758.844A1.69%201.69%200%200014.299%200H5.887c-.6%200-1.156.32-1.456.844L.225%208.156c-.3.523-.3%201.165%200%201.688l4.206%207.312c.3.523.856.844%201.456.844h8.412c.6%200%201.156-.32%201.456-.844l4.206-7.312a1.69%201.69%200%2000.003-1.688%22/%3E%3Cpath%20transform%3D%22translate%2819.61%2033.50%29%22%20d%3D%22M19.964%208.156%2015.758.844A1.69%201.69%200%200014.299%200H5.887c-.6%200-1.156.32-1.456.844L.225%208.156c-.3.523-.3%201.165%200%201.688l4.206%207.312c.3.523.856.844%201.456.844h8.412c.6%200%201.156-.32%201.456-.844l4.206-7.312a1.69%201.69%200%2000.003-1.688%22/%3E%3Cpath%20transform%3D%22translate%2837.22%20-19.00%29%22%20d%3D%22M19.964%208.156%2015.758.844A1.69%201.69%200%200014.299%200H5.887c-.6%200-1.156.32-1.456.844L.225%208.156c-.3.523-.3%201.165%200%201.688l4.206%207.312c.3.523.856.844%201.456.844h8.412c.6%200%201.156-.32%201.456-.844l4.206-7.312a1.69%201.69%200%2000.003-1.688%22/%3E%3Cpath%20transform%3D%22translate%2837.22%202.00%29%22%20d%3D%22M19.964%208.156%2015.758.844A1.69%201.69%200%200014.299%200H5.887c-.6%200-1.156.32-1.456.844L.225%208.156c-.3.523-.3%201.165%200%201.688l4.206%207.312c.3.523.856.844%201.456.844h8.412c.6%200%201.156-.32%201.456-.844l4.206-7.312a1.69%201.69%200%2000.003-1.688%22/%3E%3Cpath%20transform%3D%22translate%2837.22%2023.00%29%22%20d%3D%22M19.964%208.156%2015.758.844A1.69%201.69%200%200014.299%200H5.887c-.6%200-1.156.32-1.456.844L.225%208.156c-.3.523-.3%201.165%200%201.688l4.206%207.312c.3.523.856.844%201.456.844h8.412c.6%200%201.156-.32%201.456-.844l4.206-7.312a1.69%201.69%200%2000.003-1.688%22/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56.4px 33.6px;
  opacity: 0.09;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 45%, #000, transparent);
  mask-image: radial-gradient(60% 70% at 50% 45%, #000, transparent);
  pointer-events: none;
}
/* the whole hero is one screen: top bar, headline, belt, search. Nothing below the fold. */
.nh-stage { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.nh-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; }
.nh-top .brand { color: #fff; text-decoration: none; }
.nh-top .brand .hex { width: 30px; }
.nh-top .brand .wordmark { font-size: 22px; }
.nh-top .chrome-slot { position: relative; top: auto; right: auto; }

.nh-hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* the belt takes whatever height is left, so headline, belt and search stay evenly spaced */
  justify-content: space-evenly;
  gap: 16px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 16px 24px;
  box-sizing: border-box;
  text-align: center;
}
.nh-copy { grid-area: copy; display: grid; gap: 10px; justify-items: center; max-width: 100%; }
.nh-eyebrow { font-size: 12px; letter-spacing: 0.14em; font-weight: 700; text-transform: uppercase; color: var(--nh-w40); }
.nh-copy h1 { margin: 0; font-size: clamp(26px, 7.2vw, 56px); line-height: 1.25; font-weight: 700; white-space: nowrap; color: #fff; }

/* the belt */
.nh-vb {
  grid-area: vb;
  position: relative;
  width: 360px;
  max-width: 100%;
  flex: 1 1 0;
  min-height: 250px;
  max-height: 640px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 95%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 95%, transparent);
}
.nh-ln { position: absolute; inset: 0; }
.nh-ln.raw { clip-path: inset(0 0 calc(100% - var(--nh-gy, 50%) + var(--nh-gap) / 2) 0); }
.nh-ln.wire { clip-path: inset(calc(var(--nh-gy, 50%) - var(--nh-gap) / 2) 0 calc(100% - var(--nh-gy, 50%) - var(--nh-gap) / 2) 0); }
.nh-ln.named { clip-path: inset(calc(var(--nh-gy, 50%) + var(--nh-gap) / 2) 0 0 0); }
.nh-vi { position: absolute; left: calc(50% - var(--nh-bw) / 2); top: 0; will-change: transform; }
.nh-vi.you { z-index: 2; opacity: 0; }

/* one box, three skins, one grid */
.nh-bx {
  box-sizing: border-box;
  width: var(--nh-bw);
  height: var(--nh-bh);
  padding: 14px 20px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: 28px 20px 20px;
  column-gap: 16px;
  align-items: center;
  text-align: left;
}
.nh-bx .fs { grid-row: 1 / 4; width: 44px; height: 44px; display: grid; place-items: center; }
.nh-bx .fs img { display: block; }
.nh-bx .r1, .nh-bx .r2, .nh-bx .r3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nh-bx.raw { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.72); font-family: "Fira Mono", monospace; font-size: 13px; letter-spacing: 0.06em; }
.nh-bx.raw .fs { color: rgba(255, 255, 255, 0.3); }
.nh-bx.wire { box-shadow: inset 0 0 0 1.5px var(--nh-lb), 0 0 24px rgba(5, 130, 202, 0.35); background: rgba(5, 130, 202, 0.1); color: #fff; font-family: "Fira Mono", monospace; }
.nh-bx.wire .fs { color: var(--nh-lb); }
.nh-bx.wire .r1 { font-size: 18px; font-weight: 500; }
.nh-bx.wire .r2 { font-size: 12px; opacity: 0.85; }
.nh-bx.wire .r3 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.nh-sil { width: 44px; height: 44px; background: var(--nh-lb); -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; isolation: isolate; }
.nh-sil img { mix-blend-mode: multiply; filter: grayscale(1) contrast(1.4) brightness(1.5); }
.nh-bx.done { background: #fff; color: var(--nh-navy); box-shadow: 0 22px 44px rgba(8, 6, 30, 0.45); }
.nh-bx.done .fs { color: rgba(31, 35, 72, 0.15); }
.nh-bx.done .r1 { font-size: 22px; font-weight: 300; color: rgba(31, 35, 72, 0.45); }
.nh-bx.done .r1 b { font-weight: 800; color: var(--nh-navy); }
.nh-bx.done .r2 { font-family: "Fira Mono", monospace; font-size: 12px; color: rgba(31, 35, 72, 0.6); letter-spacing: 0.04em; }
.nh-bx.done .r3 { font-size: 12px; font-weight: 700; color: var(--nh-green); }
.nh-bx.done.av .r3 { color: #0071c3; }
.nh-bx.done.hd .r3 { color: #5f4b8b; }
.nh-bx.done.tk .r3 { color: rgba(31, 35, 72, 0.6); }
.nh-vi.you .nh-bx.done { box-shadow: 0 0 0 2px var(--nh-lb), 0 22px 44px rgba(8, 6, 30, 0.45); }

/* the gate: two fixed lines, brackets the width of the box, stripes driven by the belt */
.nh-band {
  position: absolute;
  left: calc(50% - var(--nh-bw) / 2 - 10px);
  width: calc(var(--nh-bw) + 20px);
  top: calc(var(--nh-gy, 50%) - var(--nh-gap) / 2);
  height: var(--nh-gap);
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg, rgba(5, 130, 202, 0.22) 0 1px, transparent 1px 4px);
  background-size: 100% 4px;
}
.nh-edge { position: absolute; left: -6px; right: -6px; height: 2px; background: var(--nh-lb); box-shadow: 0 0 12px 2px rgba(5, 130, 202, 0.85); }
.nh-edge.top { top: -1px; }
.nh-edge.bot { bottom: -1px; }
.nh-band::before, .nh-band::after { content: ""; position: absolute; top: -10px; bottom: -10px; width: 12px; border: 2px solid #fff; }
.nh-band::before { left: -14px; border-right: 0; }
.nh-band::after { right: -14px; border-left: 0; }

/* search sits AFTER the scan */
.nh-find { grid-area: find; display: grid; gap: 12px; justify-items: center; width: 100%; max-width: 680px; margin: 0 auto; }
.nh-search { display: flex; gap: 10px; width: 100%; }
.nh-search input {
  flex: 1;
  min-width: 0;
  height: 60px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font: 600 17px "Mulish", system-ui, sans-serif;
  color: var(--nh-navy);
  background: #fff;
}
.nh-search input:focus-visible { outline: 2px solid var(--nh-lb); outline-offset: 2px; }
.nh-search button {
  height: 60px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font: 700 16px "Mulish", system-ui, sans-serif;
  color: #fff;
  cursor: pointer;
  background-image: radial-gradient(100% 100% at bottom right, var(--nh-blue), var(--nh-lb));
}
.nh-search button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nh-status:empty { display: none; }
.nh-status:not(:empty) { min-height: 36px; }
.nh-status { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center; min-height: 36px; font-size: 15px; color: var(--nh-w60); text-align: center; }
.nh-status .mono { font-family: "Fira Mono", monospace; color: #fff; }
.nh-status .chip { padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; color: #fff; background: rgba(255, 255, 255, 0.14); }
.nh-status .chip.av { background-image: radial-gradient(100% 100% at bottom right, var(--nh-blue), var(--nh-lb)); }
.nh-status .chip.hd { background: var(--nh-gold); color: var(--nh-navy); }
.nh-status .reading { font-family: "Fira Mono", monospace; font-size: 13px; letter-spacing: 0.08em; color: #fff; opacity: 0.7; }
.nh-status .mini {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font: 700 13px "Mulish", system-ui, sans-serif;
  color: var(--nh-navy);
  background: #fff;
  text-decoration: none;
  cursor: pointer;
}
.nh-status .mini:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 640px) {
  .nh-top { padding: 12px 16px; }
  .nh-top .brand .wordmark { font-size: 19px; }
  .nh-top .brand .hex { width: 26px; }
  .nh-search input { height: 54px; padding: 0 18px; }
  .nh-search button { height: 54px; padding: 0 20px; }
  .nh-status { font-size: 14px; }
  .nh-status:not(:empty) { min-height: 82px; align-content: flex-start; }
}
