/* LogoByte — logobyte.se / logobyte.eu
   Palette and tone are taken from the LogoByte splash artwork:
   deep blue-black, the wordmark blue, and the three trace colours. */

@font-face { font-family: "Archivo"; src: url("archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("archivo-latin-wdth-italic.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --ink:      #060a10;   /* page */
  --panel:    #0c131d;   /* instrument surfaces */
  --rule:     #1c2a3b;
  --text:     #e9eff6;
  --muted:    #8d9bad;
  --blue:     #1f8fff;   /* wordmark blue */
  --blue-hi:  #7cc2ff;
  --trace-g:  #35d766;
  --trace-o:  #ff7a2a;
  --sans: "Archivo", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans);
  font-size: 1.0625rem; line-height: 1.6; font-stretch: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-hi); text-underline-offset: .18em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }

h1, h2, h3, dt { text-wrap: balance; font-stretch: 118%; font-weight: 700; line-height: 1.12; letter-spacing: -.012em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-style: italic; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.35rem); }
h3, dt { font-size: 1.125rem; line-height: 1.3; }
p { margin: 0; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 2rem;
  padding: .7rem max(1.25rem, calc((100% - 1120px) / 2));
  background: rgb(6 10 16 / .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.brand img { height: 32px; width: auto; }
.top nav { display: flex; gap: 1.6rem; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn { font: inherit; font-weight: 650; font-stretch: 108%; cursor: pointer; text-decoration: none; display: inline-block;
  padding: .78rem 1.35rem; border-radius: 4px; border: 1px solid var(--blue); background: var(--blue); color: #03101f; }
.btn:hover { background: var(--blue-hi); border-color: var(--blue-hi); color: #03101f; }
.btn-quiet { background: transparent; color: var(--text); border-color: #3a4d63; }
.btn-quiet:hover { background: transparent; color: #fff; border-color: var(--blue-hi); }
.btn-small { padding: .45rem .9rem; font-size: .92rem; }
.btn[disabled] { opacity: .55; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- hero ---------- */
.hero { position: relative; }
.splash { width: 100%; height: min(64vh, 50vw); min-height: 240px; object-fit: cover; object-position: 50% 46%; }
.hero picture { display: block; position: relative; }
.hero picture::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to bottom, rgb(6 10 16 / 0), var(--ink)); }
.hero-copy { position: relative; margin-top: -.5rem; padding-bottom: 4.5rem; }
.scope { color: var(--blue-hi); font-weight: 550; margin-bottom: .9rem; }
.lede { max-width: var(--measure); font-size: 1.22rem; line-height: 1.55; color: #cdd7e3; margin: 1.4rem 0 2rem; }
.status { margin-top: 1.6rem; color: var(--muted); font-size: .95rem; }
.status::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%;
  background: var(--trace-o); margin-right: .55em; vertical-align: .08em; }

/* ---------- features ---------- */
.features { padding-block: .5rem 5rem; }
.features h2 { margin-bottom: 2rem; }
.features dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; border-top: 1px solid var(--rule); }
.features dl > div { padding: 1.7rem 0 1.8rem; border-bottom: 1px solid var(--rule); }
.features dt { margin-bottom: .55rem; color: #fff; }
.features dd { margin: 0; color: #b9c5d3; max-width: 54ch; }

/* ---------- positioning ---------- */
.position { background: var(--panel); border-block: 1px solid var(--rule); padding-block: 4.5rem; }
.position h2 { max-width: 24ch; font-size: clamp(1.7rem, 3.6vw, 2.8rem); }
.versus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.versus h3 { color: var(--blue-hi); font-size: 1rem; font-stretch: 105%; font-weight: 600; margin-bottom: .6rem; }
.versus p { color: #cdd7e3; }

/* ---------- closing ---------- */
.closing { padding-block: 5rem; }
.closing h2 { max-width: 26ch; font-style: italic; font-weight: 800; font-size: clamp(1.9rem, 4.4vw, 3.3rem); }
.reqs { list-style: none; padding: 0; margin: 2.4rem 0 2.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; border-top: 1px solid var(--rule); }
.reqs li { padding: .85rem 0; border-bottom: 1px solid var(--rule); color: #cdd7e3; display: flex; gap: 1rem; }
.reqs b { flex: 0 0 6.2rem; color: var(--muted); font-weight: 500; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding-block: 2rem 3rem; font-size: .95rem; }
.muted { color: var(--muted); margin-top: .3rem; font-size: .88rem; }

/* ---------- contact dialog ---------- */
dialog { width: min(100% - 2rem, 34rem); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.6rem 1.7rem 1.5rem;
  background: #0e1722; color: var(--text); border: 1px solid #2a3c52; border-radius: 8px; }
dialog::backdrop { background: rgb(2 5 9 / .72); backdrop-filter: blur(3px); }
dialog[open] { animation: rise .18s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.dlg-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
dialog h2 { font-size: 1.45rem; }
.x { font: inherit; font-size: 1.7rem; line-height: 1; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 .3rem; }
.x:hover { color: #fff; }
.dlg-intro { color: #b9c5d3; margin: .6rem 0 1.2rem; font-size: .98rem; }
.field { margin-bottom: .95rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .3rem; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--text); background: #070c13; border: 1px solid #2a3c52; border-radius: 4px; padding: .6rem .7rem; }
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field [aria-invalid=true] { border-color: #ff6b6b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { min-height: 1.4em; font-size: .92rem; color: #ff9d9d; margin-bottom: .6rem; }
.dlg-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.privacy { margin-top: 1rem; color: var(--muted); font-size: .82rem; }
.sent h2 { margin-bottom: .6rem; } .sent p { margin-bottom: 1.4rem; color: #cdd7e3; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .top nav { display: none; }
  .top .btn-small { margin-left: auto; }
  .features dl, .reqs { grid-template-columns: minmax(0, 1fr); }
  .versus { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  dialog[open] { animation: none; }
}

/* verdict chips used in the feature text */
.inline-verdict { font-family: var(--mono); font-size: .78rem; padding: .16rem .5rem; border-radius: 3px; border: 1px solid;
  white-space: nowrap; color: var(--trace-g); border-color: rgb(53 215 102 / .4); background: rgb(53 215 102 / .07); }
.inline-verdict.poll { color: #ffc46b; border-color: rgb(255 196 107 / .4); background: rgb(255 196 107 / .07); }
