/* azvect Security */

/* ---------- Foundations ---------- */

:root {
  color-scheme: dark;

  /* Charcoal and white, as on the business card. */
  --bg: #161616;
  --field: #1d1d1d;
  --text: #ececec;
  --text-2: #a3a3a3;
  --text-3: #8a8a8a;
  --line: #2b2b2b;
  --line-strong: #474747;
  --ring: rgb(236 236 236 / 0.14);
  --danger: #ff7a6e;
  --danger-ring: rgb(255 122 110 / 0.2);

  /* Printed report sample */
  --paper: #f2f1ee;
  --ink: #1b1b1b;
  --ink-2: #66655f;
  --paper-line: #d9d7d1;
  --critical: #c4271b;

  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --gutter: var(--s-5);
  --section-pad: var(--s-8);
  --header-h: 64px;
  --radius: 4px;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur: 160ms;
}

@media (min-width: 768px) {
  :root {
    --gutter: var(--s-6);
    --section-pad: var(--s-9);
  }
}

/* ---------- Base ---------- */

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

code {
  font-family: var(--font-mono);
}

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

[hidden] {
  display: none !important;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: var(--s-3);
  left: var(--s-4);
  z-index: 20;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Components ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 44px;
  padding: 0 var(--s-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: 500 1rem/1 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn:hover {
  border-color: var(--text);
}

.btn-primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  border-color: #ffffff;
  background: #ffffff;
}

.btn-sm {
  height: 34px;
  padding: 0 var(--s-4);
  font-size: 0.875rem;
}

.btn[aria-disabled="true"] {
  cursor: progress;
}

.text-link,
.section-body a,
.contact-lines a {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: text-decoration-color var(--dur) var(--ease);
}

.text-link:hover,
.section-body a:hover,
.contact-lines a:hover {
  text-decoration-color: currentColor;
}

.chip {
  height: 30px;
  padding: 0 var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-2);
  font: 0.875rem/1 var(--font-text);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.chip:hover,
.chip.is-done {
  border-color: var(--text);
  color: var(--text);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Brand ---------- */

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

/* Rabbit mark, traced from the business card (aspect 0.75). */
.brand-mark {
  flex: none;
  width: 18px;
  height: 24px;
  fill: currentColor;
}

/* Wordmark as on the card: bold lowercase "azvect", smaller regular "Security". */
.wordmark {
  font-family: var(--font-brand);
  font-size: 0.9375rem;
  line-height: 1;
  white-space: nowrap;
}

.wordmark b {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-sm .brand-mark {
  width: 15px;
  height: 20px;
}

.brand-sm .wordmark {
  font-size: 0.8125rem;
}

.brand-sm .wordmark b {
  font-size: 1.125rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: var(--header-h);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.nav-links {
  display: none;
  gap: var(--s-5);
}

.nav-links a {
  color: var(--text-2);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current] {
  color: var(--text);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

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

.hero {
  padding-block: var(--s-8) var(--section-pad);
}

@media (min-width: 768px) {
  .hero {
    padding-top: var(--s-9);
  }
}

.hero-grid {
  display: grid;
  gap: var(--s-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  }
}

.kicker {
  color: var(--text-2);
}

.hero h1 {
  max-width: 13ch;
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 34rem;
  margin-top: var(--s-5);
  color: var(--text-2);
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-6);
}

/* ---------- Report sample ---------- */

.report figcaption {
  margin-top: var(--s-3);
  color: var(--text-3);
  font-size: 0.875rem;
}

.report-page {
  padding: var(--s-6);
  border-radius: 2px;
  background: var(--paper);
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.7);
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--paper-line);
  color: var(--ink-2);
  font-size: 0.6875rem;
  line-height: 1.4;
}

.report-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

.report-brand svg {
  width: 9px;
  height: 12px;
  fill: currentColor;
}

.report-brand .wordmark {
  font-size: 0.625rem;
}

.report-brand .wordmark b {
  font-size: 0.875rem;
}

.report-doc {
  text-align: right;
}

.report-title {
  margin-top: var(--s-5);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.report-title span {
  margin-right: var(--s-3);
  color: var(--ink-2);
  font-weight: 400;
}

.report-meta {
  display: grid;
  gap: 6px;
  margin-top: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--paper-line);
}

.report-meta div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: var(--s-3);
}

.report-meta dt {
  color: var(--ink-2);
}

.report-page code {
  font-size: 0.6875rem;
  overflow-wrap: anywhere;
}

.sev-critical {
  color: var(--critical);
  font-weight: 700;
}

.report-label {
  margin-top: var(--s-4);
  font-weight: 700;
}

.report-label + p {
  margin-top: 2px;
}

@media (max-width: 479px) {
  .report-page {
    padding: var(--s-5);
  }
}

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

.section {
  padding-bottom: var(--section-pad);
}

/* Hairline, title on the left, content on the right. */
.section-grid {
  position: relative;
  display: grid;
  gap: var(--s-5);
  padding-top: var(--s-6);
}

/* Hairlines sit on the content edge, not the container's padding. */
.section-grid::before,
.footer-inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--gutter);
  left: var(--gutter);
  border-top: 1px solid var(--line);
}

@media (min-width: 960px) {
  .section-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: var(--s-7);
  }
}

.section-grid > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 36rem;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Rows: services and steps */
.rows {
  margin: 0;
  padding: 0;
}

.rows li {
  padding-block: var(--s-5);
  border-top: 1px solid var(--line);
}

.rows li:first-child {
  padding-top: 0;
  border-top: 0;
}

.rows h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.rows p {
  max-width: 40rem;
  margin-top: var(--s-2);
  color: var(--text-2);
  text-wrap: pretty;
}

@media (min-width: 1100px) {
  .rows li {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s-5);
  }

  .rows p {
    margin-top: 0;
  }
}

.num {
  display: inline-block;
  min-width: 1.75em;
  color: var(--text-3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.note {
  max-width: 40rem;
  margin-top: var(--s-6);
  color: var(--text-2);
  text-wrap: pretty;
}

.prose p:not(.lead) {
  max-width: 40rem;
  color: var(--text-2);
  text-wrap: pretty;
}

.prose p + p,
.prose .facts + p {
  margin-top: var(--s-4);
}

/* Plain record of experience, read like a CV line rather than a feature list. */
.facts {
  max-width: 40rem;
  margin-block: var(--s-6);
}

.facts div {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: var(--s-4);
  padding-block: var(--s-3);
  border-top: 1px solid var(--line);
}

.facts div:last-child {
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--text-3);
}

@media (max-width: 479px) {
  .facts div {
    grid-template-columns: none;
    gap: 2px;
  }
}

.facts .links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
}

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-links a:hover {
  color: var(--text);
}

.credentials {
  margin-top: var(--s-6);
  color: var(--text-3);
  font-size: 0.875rem;
}

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding-block: var(--s-4);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq details:first-child summary {
  padding-top: 0;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  color: var(--text-3);
  transition: transform 200ms var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 40rem;
  padding-bottom: var(--s-5);
  color: var(--text-2);
  text-wrap: pretty;
}

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

.contact-lines {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.contact-lines div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: var(--s-4);
}

.contact-lines dt {
  color: var(--text-3);
}

.contact-lines dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
}

.form-area {
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}

.form-grid {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: var(--s-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.optional {
  color: var(--text-3);
  font-weight: 400;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text);
  font: inherit;
  appearance: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field textarea {
  height: auto;
  min-height: 144px;
  padding: var(--s-3);
  line-height: 1.5;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: #5c5c5c;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--ring);
}

.field [aria-invalid="true"],
.field [aria-invalid="true"]:hover {
  border-color: var(--danger);
}

.field [aria-invalid="true"]:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-ring);
}

.field-hint,
.field-error {
  margin-top: var(--s-2);
  font-size: 0.875rem;
  line-height: 1.45;
}

.field-hint {
  color: var(--text-3);
}

.field-error {
  color: var(--danger);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-6);
}

.btn-submit {
  min-width: 168px;
}

.form-note {
  flex: 1 1 16rem;
  max-width: 28rem;
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.45;
}

.form-status {
  margin-top: var(--s-4);
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.45;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: var(--danger);
}

.form-success:focus {
  outline: none;
}

.form-success h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.form-success p {
  margin-block: var(--s-2) var(--s-4);
  color: var(--text-2);
}

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

.footer-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-6);
  padding-block: var(--s-6);
  color: var(--text-3);
  font-size: 0.875rem;
}

/* Two tidy rows on wider screens: brand / profiles, then identity / legal. */
@media (min-width: 768px) {
  .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--s-4) var(--s-6);
  }

  .footer-inner .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .footer-profiles { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .footer-id { grid-column: 1; grid-row: 2; }
  .footer-legal { grid-column: 2; grid-row: 2; justify-content: flex-end; align-self: end; }
}

/* ---------- Legal and error pages ---------- */

.legal {
  max-width: calc(44rem + 2 * var(--gutter));
  padding-block: var(--s-8) var(--section-pad);
}

.legal h1,
.not-found h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.legal h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1.15;
}

.legal-meta {
  margin-top: var(--s-3);
  color: var(--text-3);
  font-size: 0.875rem;
}

.legal-meta + p {
  margin-top: var(--s-6);
}

.legal h2 {
  margin-top: var(--s-7);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
}

.legal p,
.legal li {
  color: var(--text-2);
  text-wrap: pretty;
}

.legal p + p,
.legal ul + p {
  margin-top: var(--s-3);
}

.legal h2 + p,
.legal p + ul {
  margin-top: var(--s-3);
}

.legal ul {
  margin: var(--s-3) 0 0;
  padding-left: 1.25em;
}

.legal li + li {
  margin-top: var(--s-2);
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}

.legal a:hover {
  text-decoration-color: currentColor;
}

.legal-contact {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.legal-contact div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--s-4);
}

.legal-contact dt {
  color: var(--text-3);
}

.not-found {
  min-height: 50vh;
  padding-block: var(--s-9) var(--section-pad);
}

.not-found h1 {
  margin-top: var(--s-3);
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  line-height: 1.05;
}

/* ---------- Preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .spinner {
    animation-duration: 1.6s;
  }
}
