/* Velytrion Technologies - site styles (v2)
   Plain CSS. Tokens live in :root. No gradients, no shadows, no animation
   beyond a reduced-motion-safe smooth scroll. */

:root {
  --ink: #1c2129;
  --ink-2: #4a5260;
  --ink-3: #6a7382;
  --navy: #0e1d33;
  --blue: #2360a8;
  --blue-hover: #1a4d8a;
  --blue-on-dark: #7fb0ea;
  --blue-tint: #eaf1f9;
  --rule: #d9dee6;
  --rule-strong: #b7c0cd;
  --paper: #ffffff;
  --mist: #f4f6f8;
  --warn: #7a5200;
  --warn-tint: #fbf5e7;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, "Liberation Mono", monospace;
  --wrap: 1120px;
  --gutter: 16px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--blue-hover);
}

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

h1,
h2,
h3 {
  color: var(--navy);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.2rem;
  margin: 0 0 1em;
}

li {
  margin-bottom: 0.45rem;
}

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

@media (min-width: 900px) {
  :root {
    --gutter: 32px;
  }
}

.section {
  padding: 72px 0;
}

.section + .section {
  padding-top: 0;
}

.section-rule {
  border-top: 1px solid var(--rule);
}

/* Small monospace labels: used for section numbers, specs and captions */
.label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}

.label-accent {
  color: var(--blue);
}

.lede {
  font-size: 1.17rem;
  color: var(--ink-2);
  max-width: 58ch;
}

.muted {
  color: var(--ink-2);
}

.prose {
  max-width: 66ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 3px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: #fff;
}

.btn-secondary {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
}

.btn[aria-disabled="true"] {
  background: #e3e7ed;
  border-color: #e3e7ed;
  color: #5b6474;
  cursor: not-allowed;
  pointer-events: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--blue);
}

.text-link::after {
  content: " \2192";
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand:hover {
  color: var(--navy);
}

.brand img {
  width: 30px;
  height: 30px;
}

.brand-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.1;
}

.brand-name small {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.site-nav {
  display: none;
}

.site-nav a {
  position: relative;
  display: inline-block;
  margin-left: 28px;
  padding: 6px 0;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--navy);
}

.site-nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--blue);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after,
.nav-toggle-icon span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy);
}

.nav-toggle-icon::before {
  top: 0;
}

.nav-toggle-icon span {
  top: 5px;
}

.nav-toggle-icon::after {
  bottom: 0;
}

.nav-open .site-nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: none;
}

.nav-open .site-nav a {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
}

.nav-open .site-nav a[aria-current="page"] {
  border-bottom-color: var(--rule);
  color: var(--blue);
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .nav-open .site-nav {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    border: 0;
    background: none;
  }

  .nav-open .site-nav a {
    padding: 6px 0;
    margin-left: 28px;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
  }

  .nav-open .site-nav a[aria-current="page"] {
    border-bottom-color: var(--blue);
    color: var(--navy);
  }
}

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

.hero {
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

.hero h1 {
  max-width: 19ch;
}

.hero .lede {
  margin-top: 4px;
}

/* Screenshot slot. Shows a clearly labelled placeholder until an approved
   screenshot from the pilot build exists. Never a mock of the interface. */
.shot {
  margin: 0;
}

.shot-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  background: var(--mist);
  border: 1px solid var(--rule-strong);
}

.shot-frame .shot-title {
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
}

.shot-frame .shot-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-strong);
}

.shot-frame.is-wide {
  aspect-ratio: 16 / 9;
}

.shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* Title-block strip: identifies the company and product at a glance */
.titleblock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--rule);
}

.titleblock div {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--rule);
}

.titleblock div:nth-child(odd) {
  padding-left: 0;
}

.titleblock div:nth-child(even) {
  padding-left: 16px;
  border-left: 1px solid var(--rule);
}

.titleblock dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.titleblock dd {
  margin: 2px 0 0;
  font-weight: 600;
  color: var(--navy);
}

@media (min-width: 900px) {
  .titleblock {
    grid-template-columns: repeat(4, 1fr);
  }

  .titleblock div,
  .titleblock div:nth-child(n) {
    padding: 16px 20px;
    border-bottom: 0;
    border-left: 1px solid var(--rule);
  }

  .titleblock div:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

/* ---------- Numbered rows (replace card grids) ---------- */

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--navy);
}

.shots {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

@media (min-width: 900px) {
  .shots {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }
}

.rows li {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  margin: 0;
  border-bottom: 1px solid var(--rule);
}

.rows .idx {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--blue);
}

.rows h3 {
  margin: 0;
}

.rows p {
  margin: 0;
  color: var(--ink-2);
}

@media (min-width: 760px) {
  .rows li {
    grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 0 24px;
    align-items: baseline;
  }
}

.split {
  display: grid;
  gap: 24px 64px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1.6fr;
  }
}

/* ---------- Closing band (single flat navy block) ---------- */

.band {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}

.band h2 {
  color: #fff;
  margin-bottom: 8px;
}

.band p {
  color: #c4cfdf;
  margin: 0;
  max-width: 56ch;
}

.band .label {
  color: var(--blue-on-dark);
}

.band .btn-primary {
  background: #3d7ccc;
}

.band .btn-primary:hover {
  background: #4b89d6;
}

.band .btn-secondary {
  border-color: #fff;
  color: #fff;
}

.band .btn-secondary:hover {
  background: #fff;
  color: var(--navy);
}

.band-inner {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .band-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }

  .band-inner .actions {
    justify-content: flex-end;
    margin-top: 0;
  }
}

/* ---------- Page intro (inner pages) ---------- */

.page-intro {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--rule);
}

.page-intro h1 {
  margin-bottom: 14px;
}

/* ---------- Status notice: plain, bordered, labelled ---------- */

.status {
  display: grid;
  gap: 6px;
  padding: 16px 20px;
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--warn);
  background: var(--warn-tint);
  margin: 0 0 40px;
}

.status .label {
  margin: 0;
  color: var(--warn);
}

.status p {
  margin: 0;
  color: #3d3320;
}

/* ---------- Specification list (downloads) ---------- */

.spec {
  margin: 0 0 8px;
  border-top: 2px solid var(--navy);
}

.spec > div {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.spec dt {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.spec dd {
  margin: 0;
  color: var(--navy);
  word-break: break-word;
}

.spec .checksum {
  font-family: var(--mono);
  font-size: 0.88rem;
  word-break: break-all;
}

@media (min-width: 640px) {
  .spec > div {
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: baseline;
  }
}

/* ---------- Release notes (document layout) ---------- */

.release {
  display: grid;
  gap: 16px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}

.release:first-child {
  padding-top: 0;
}

.release-meta h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.release-meta dl {
  margin: 0;
  display: grid;
  gap: 6px;
}

.release-meta dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.release-meta dd {
  margin: 0 0 8px;
  color: var(--ink);
}

.release-body h3 {
  font-size: 0.8rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
}

.release-body h3:not(:first-child) {
  margin-top: 26px;
}

.release-body ul {
  padding-left: 1.1rem;
}

@media (min-width: 900px) {
  .release {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
  }
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 8px;
  border: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.tag-draft {
  border-color: #d9c28e;
  background: var(--warn-tint);
  color: var(--warn);
}

/* ---------- Contact ---------- */

.mail {
  display: inline-block;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
  word-break: break-word;
}

.mail:hover {
  color: var(--blue);
}

/* ---------- Footer (title-block style) ---------- */

.site-footer {
  border-top: 1px solid var(--navy);
  padding: 28px 0 36px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.footer-wrap {
  display: grid;
  gap: 14px;
}

.footer-wrap strong {
  color: var(--navy);
  font-weight: 600;
}

.footer-wrap a {
  color: var(--navy);
}

@media (min-width: 760px) {
  .footer-wrap {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: baseline;
  }
}

/* ---------- Forms (application, feedback, admin) ---------- */

.form {
  display: grid;
  gap: 18px;
  align-content: start;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.field small {
  color: var(--ink-3);
  font-size: 0.85rem;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 0;
  border-color: var(--blue);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink);
}

.check input {
  width: 18px;
  height: 18px;
}

/* Honeypot: off-screen for people, still present in the markup for bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Portal and admin ---------- */

.portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding: 0 0 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.portal-nav a {
  padding: 4px 0;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}

.portal-nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--blue);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions .btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--navy);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--rule);
}

.table th {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.table form {
  margin: 0;
}

.tag-approved {
  border-color: #9fc3a8;
  background: #eef7f0;
  color: #1f5b2e;
}

.tag-pending {
  border-color: #d9c28e;
  background: var(--warn-tint);
  color: var(--warn);
}

.tag-rejected,
.tag-revoked {
  border-color: var(--rule-strong);
  color: var(--ink-3);
}

.pre {
  white-space: pre-wrap;
  margin: 8px 0 0;
  color: var(--ink);
}

.feedback-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feedback-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.feedback-list li:last-child {
  border-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
