/* verified.technology — control surface.
 *
 * Every colour is a custom property from :root below; nothing else in this
 * file hardcodes a colour. Zero border-radius throughout: the page is a
 * device panel, not an app. Text sizes are in rem so browser zoom and a
 * larger root font both scale the page.
 */

:root {
  --bg: #0a0d12;
  --panel: #0f151d;
  --hairline: #2a3646;
  --fg: #e7eef6;
  --dim: #95a3b5;
  --muted: #7a8899;
  --signal: #3fd07f;
  --action: #5aa9ff;

  --max: 1060px;
  --pad: 34px;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Long tokens — mono identifiers, the wordmark, a product name — must break
 * rather than push the page sideways at 320px or under text zoom. A <pre>
 * keeps white-space: pre, so its overflow is handled by .code instead. */
.mono,
.brand,
.pname,
.kv,
.code,
pre {
  overflow-wrap: anywhere;
}

/* `.mono` is the one class that renders in the mono stack -- an identifier, a
 * path, a status value. `.brand` and `.pname` share only the wrap rule above
 * and stay in the sans stack. */
.mono {
  font-family: var(--mono);
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* --- masthead ------------------------------------------------------------ */

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--hairline);
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brandmark {
  display: inline-block;
  width: 0.7rem;
  aspect-ratio: 1;
  background: var(--signal);
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--dim);
}

.navlinks a:hover {
  color: var(--fg);
}

/* --- hero ---------------------------------------------------------------- */

.hero {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--hairline);
}

.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.lede {
  max-width: 60ch;
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  color: var(--dim);
}

/* --- sections ------------------------------------------------------------ */

.section {
  padding-top: 2.5rem;
}

.section h2,
.seclabel h2 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--dim);
}

.seclabel {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.seclabel h2 {
  margin: 0;
}

.meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* --- products ------------------------------------------------------------ */

.grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.25rem;
  padding-top: 0.25rem;
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hairline);
}

.cardbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.75rem;
  color: var(--dim);
}

.cardbar i {
  width: 0.55rem;
  aspect-ratio: 1;
  background: var(--hairline);
}

.cardbody {
  padding: 1.4rem;
}

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  border: 1px solid var(--hairline);
  padding: 0.25rem 0.5rem;
}

.pname {
  margin: 0.9rem 0 0.35rem;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ptag {
  margin: 0 0 0.9rem;
}

.pbody {
  margin: 0 0 1.25rem;
  color: var(--dim);
}

.kv {
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.kv > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline);
}

.kv > div:first-child {
  border-top: 1px solid var(--hairline);
}

.kv .k {
  color: var(--dim);
}

.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 14rem;
  padding: 1.5rem;
  border: 1px dashed var(--hairline);
  text-align: center;
  color: var(--muted);
}

.slot .mono {
  letter-spacing: 0.18em;
}

.go {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--action);
}

.go:hover {
  text-decoration: underline;
}

/* The card is the target, not only the link sitting on it. The link keeps its
 * own name and tab stop and stretches over the card with its own ::after, so
 * the whole surface is clickable with no script and still exactly one link.
 * Hovering anywhere on the card is hovering the link, so the underline above
 * fires for the whole surface. */
.card .go::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card:hover {
  border-color: var(--action);
}

/* Put the focus ring on the card the link now covers. Without :has() both
 * rules drop and the link keeps the ring from :focus-visible above, so focus
 * is never invisible. */
@supports selector(:has(*)) {
  .card:has(.go:focus-visible) {
    outline: 2px solid var(--signal);
    outline-offset: 2px;
  }

  .card .go:focus-visible {
    outline: none;
  }
}

/* --- principle ----------------------------------------------------------- */

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1.5rem 2rem;
}

.point h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.point p {
  margin: 0;
  color: var(--dim);
}

/* --- product page -------------------------------------------------------- */

.prodhead {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--hairline);
}

.prodtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.prodtitle h1 {
  margin: 0;
}

.prodmark {
  width: 4rem;
}

.floor {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.floor th,
.floor td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline);
}

.floor th {
  text-align: left;
  font-weight: 400;
  color: var(--dim);
}

.floor td {
  text-align: right;
  font-family: var(--mono);
}

.limits,
.reqs,
.facts {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.limits li,
.reqs li,
.facts li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--dim);
}

.limits li::before,
.reqs li::before,
.facts li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.code {
  display: block;
  margin: 1rem 0 0;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.8125rem;
  overflow-x: auto;
}

/* --- contact -------------------------------------------------------------- */

/* The line is inline text, so the label and the handle share one baseline. A
 * flex row would centre their boxes instead and drift the baselines apart once
 * the mono handle's taller metrics are involved. The mark rides the baseline. */
.contact img {
  width: 1.25rem;
  aspect-ratio: 1;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.contact a {
  color: var(--action);
}

.contact a:hover {
  text-decoration: underline;
}

/* --- footer -------------------------------------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 3.5rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  color: var(--dim);
}

/* --- narrow viewports ---------------------------------------------------- */

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .kv > div {
    flex-direction: column;
    gap: 0.15rem;
  }

  .floor td {
    text-align: left;
  }
}
