/* ============================================================================
   Vektral™ Security Platform — marketing site
   One page, no build step. Tokens first; everything below derives from them.
   ========================================================================== */

/* ---- Fonts: Inter is self-hosted (shared with the Client Portal); Bricolage
   Grotesque is loaded from Google Fonts in index.html with a system fallback. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Inter-Bold.woff2") format("woff2"); }

:root {
  /* Palette — brand red is a brand colour here, never an alarm. */
  --ink: #0a2540;
  --ink-2: #1c3a5c;
  --slate: #697386;
  --dim: #9aa3ad;
  --line: #e3e8ee;
  --fog: #f6f9fc;
  --paper: #ffffff;
  --red: #cf181f;
  --red-deep: #b01717;
  --red-tint: #fbeced;
  --green: #1f7a4d;
  --green-tint: #e8f5ee;
  --amber: #a37b00;
  --amber-tint: #fff5dc;

  /* Type */
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", -apple-system, system-ui, "Segoe UI", sans-serif;

  /* Scale */
  --fz-xs: 0.8125rem;  /* 13 */
  --fz-sm: 0.9375rem;  /* 15 */
  --fz-md: 1.0625rem;  /* 17 */
  --fz-lg: 1.25rem;    /* 20 */
  --fz-xl: 1.5rem;     /* 24 */
  --fz-2xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  --fz-3xl: clamp(2.4rem, 1.4rem + 3.6vw, 4.25rem);

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(10, 37, 64, .06), 0 8px 24px rgba(10, 37, 64, .06);
  --shadow-2: 0 2px 6px rgba(10, 37, 64, .08), 0 24px 60px rgba(10, 37, 64, .14);
}

/* ---- Reset-lite ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--fz-md);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong, b { font-weight: 600; }
em { font-style: normal; font-weight: 600; color: var(--red); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: #fff; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(207, 24, 31, .45); outline-offset: 3px; border-radius: 4px; }

/* ---- Type roles ---- */
.display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: var(--fz-3xl);
  text-wrap: balance;
}
.display--md { font-size: var(--fz-2xl); line-height: 1.12; letter-spacing: -0.015em; }
.eyebrow {
  font-size: var(--fz-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow--tag { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: var(--fz-sm); color: var(--ink-2); }
.lede { font-size: var(--fz-lg); line-height: 1.5; margin-top: 22px; max-width: 34em; }
.lede--muted { color: var(--slate); }

.pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: var(--fz-xs); font-weight: 600; letter-spacing: 0.02em; line-height: 1.3;
}
.pill--free { background: var(--green-tint); color: var(--green); }
.pill--soon { background: var(--amber-tint); color: var(--amber); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; text-decoration: none; border-radius: 10px; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn--sm { padding: 9px 14px; font-size: var(--fz-sm); }
.btn--lg { padding: 15px 24px; font-size: var(--fz-md); }
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #d42b2b, var(--red-deep));
  box-shadow: 0 6px 16px rgba(196, 30, 30, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(196, 30, 30, .32), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  color: var(--ink); background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }
.cta-note { color: var(--slate); font-size: var(--fz-sm); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.03em;
  text-decoration: none; color: var(--ink); margin-right: auto;
}
.wordmark sup { font-size: 0.5em; font-weight: 500; letter-spacing: 0; vertical-align: 0.9em; margin-left: 1px; color: var(--slate); }
.nav__links { display: flex; gap: 26px; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: var(--fz-sm); color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.nav__links a:hover { color: var(--red); }
.nav__toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { display: none; }
.nav__mobile[hidden] { display: none; }

/* ---- Hero ---- */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);
  background:
    radial-gradient(1100px 520px at 85% -10%, var(--red-tint) 0%, transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--fog) 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy .lede { color: var(--ink-2); }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--slate); font-size: var(--fz-sm); }
.hero__proof li { position: relative; padding-left: 18px; }
.hero__proof li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---- The ledger (signature) ---- */
.ledger {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 26px 28px 20px;
  position: relative;
  border: 1px solid rgba(10, 37, 64, .06);
}
.ledger::before {
  /* the red rule at the top edge: statement header */
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px;
  background: var(--red); border-radius: 0 0 3px 3px;
}
.ledger__head { padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.ledger__eyebrow { font-size: var(--fz-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); font-weight: 600; }
.ledger__company { font-family: var(--display); font-weight: 600; font-size: var(--fz-xl); letter-spacing: -0.01em; margin-top: 2px; white-space: nowrap; }
.ledger__meta { font-size: var(--fz-xs); color: var(--slate); margin-top: 6px; }
.ledger__rows { margin-top: 6px; }
.row {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
  font-size: var(--fz-sm);
  opacity: 0; transform: translateY(6px);
  animation: row-in .5s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 250ms);
}
.row:nth-child(1) { --i: 0; } .row:nth-child(2) { --i: 1; } .row:nth-child(3) { --i: 2; } .row:nth-child(4) { --i: 3; }
.row:nth-child(5) { --i: 4; } .row:nth-child(6) { --i: 5; } .row:nth-child(7) { --i: 6; } .row:nth-child(8) { --i: 7; }
@keyframes row-in { to { opacity: 1; transform: none; } }
.row__mark { width: 18px; height: 18px; border-radius: 50%; position: relative; }
.row[data-state="pass"] .row__mark { background: var(--green-tint); }
.row[data-state="pass"] .row__mark::after {
  content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px;
  border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.row[data-state="fail"] .row__mark { background: var(--red-tint); }
.row[data-state="fail"] .row__mark::after {
  content: ""; position: absolute; left: 5px; top: 8px; width: 8px; height: 2px; background: var(--red);
}
.row__label { color: var(--ink); }
.row[data-state="fail"] .row__label { font-weight: 600; }
.row__count { font-variant-numeric: tabular-nums; color: var(--slate); font-size: var(--fz-xs); text-align: right; }
.row[data-state="fail"] .row__count { color: var(--red); font-weight: 600; }
.ledger__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; padding-top: 14px; border-top: 2px solid var(--ink);
  opacity: 0; animation: row-in .5s ease forwards; animation-delay: 1.25s;
}
.ledger__total-label { font-size: var(--fz-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); font-weight: 600; }
.ledger__total-value { font-family: var(--display); font-size: var(--fz-lg); font-weight: 600; }
.ledger__total-value b { font-size: 1.6em; color: var(--red); font-variant-numeric: tabular-nums; line-height: 1; }
.ledger__caption { margin-top: 14px; font-size: var(--fz-xs); color: var(--dim); }

/* ---- Thesis ---- */
.thesis { padding: clamp(64px, 8vw, 120px) 0; }
.thesis__intro { max-width: 760px; }
.questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: clamp(36px, 5vw, 64px); }
.question { padding-top: 22px; border-top: 2px solid var(--ink); }
.question h3 { font-family: var(--display); font-weight: 600; font-size: var(--fz-xl); letter-spacing: -0.01em; line-height: 1.2; }
.question p { margin-top: 12px; color: var(--slate); }

/* ---- Products ---- */
.product { padding: clamp(64px, 8vw, 120px) 0; }
.product--esa { background: var(--fog); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.product__grid--flip .product__copy { order: 2; }
.product__grid--flip .product__aside { order: 1; }
.answers { margin-top: 30px; display: grid; gap: 16px; max-width: 40em; }
.answers li { position: relative; padding-left: 30px; color: var(--slate); }
.answers li strong { display: block; color: var(--ink); margin-bottom: 2px; }
.answers li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red-tint);
}
.answers li::after {
  content: ""; position: absolute; left: 5.5px; top: calc(0.45em + 3px); width: 4px; height: 7px;
  border: solid var(--red); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.answers--compact { gap: 12px; }
.answers--compact li strong { display: inline; }

.facts { display: grid; gap: 14px; margin-top: 10px; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-1); }
.fact__k { font-weight: 600; font-size: var(--fz-sm); }
.fact__v { color: var(--slate); font-size: var(--fz-sm); margin-top: 4px; }

.cloud-card {
  background: var(--ink); color: #dfe7f1; border-radius: var(--r-lg); padding: 18px 22px 22px;
  box-shadow: var(--shadow-2); position: relative; overflow: hidden;
}
.cloud-card::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, .025) 14px 28px);
  pointer-events: none;
}
.cloud-card__bar { display: flex; gap: 6px; margin-bottom: 14px; }
.cloud-card__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.cloud-card__title { font-family: var(--display); font-weight: 600; color: #fff; font-size: var(--fz-md); }
.cloud-card__rows { margin-top: 12px; }
.cloud-card__rows li {
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  padding: 10px 0 10px 24px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: var(--fz-sm); position: relative;
}
.cloud-card__rows li:last-child { border-bottom: 0; }
.cloud-card__rows li span { color: rgba(255, 255, 255, .6); font-size: var(--fz-xs); white-space: nowrap; }
.cloud-card__rows li::before { content: ""; position: absolute; left: 2px; top: 50%; translate: 0 -50%; width: 10px; height: 10px; border-radius: 50%; }
.cloud-card__rows li[data-state="pass"]::before { background: #48c78e; }
.cloud-card__rows li[data-state="fail"]::before { background: #ff5b5b; }
.cloud-card__rows li[data-state="fail"] span { color: #ff9b9b; }
.cloud-card__rows li[data-state="soon"] { opacity: .55; }
.cloud-card__rows li[data-state="soon"]::before { background: transparent; border: 1.5px dashed rgba(255, 255, 255, .5); }

/* ---- How ---- */
.how { padding: clamp(64px, 8vw, 120px) 0; background: var(--fog); border-top: 1px solid var(--line); }
.how__intro { max-width: 720px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: clamp(36px, 5vw, 60px); counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 26px 28px; box-shadow: var(--shadow-1); position: relative; }
.step__n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: var(--fz-sm);
}
.step h3 { margin-top: 18px; font-family: var(--display); font-weight: 600; font-size: var(--fz-lg); letter-spacing: -0.01em; }
.step p { margin-top: 10px; color: var(--slate); font-size: var(--fz-sm); }
.how__cta { margin-top: 40px; }

/* ---- Who ---- */
.who { padding: clamp(64px, 8vw, 120px) 0; }
.who__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.who__list { display: grid; gap: 18px; }
.who__list li { padding-left: 20px; border-left: 2px solid var(--red); color: var(--slate); }
.who__list li strong { display: block; color: var(--ink); }

/* ---- Closing ---- */
.closing { padding: clamp(72px, 9vw, 130px) 0; background: var(--ink); color: #fff; text-align: center; }
.closing .lede--muted { color: rgba(255, 255, 255, .7); margin-inline: auto; }
.closing__inner .btn { margin-top: 30px; }
.closing .display { color: #fff; }

/* ---- Footer ---- */
.footer { padding: 44px 0 36px; border-top: 1px solid var(--line); background: var(--paper); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer__brand p { color: var(--slate); font-size: var(--fz-sm); margin-top: 12px; max-width: 34em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: var(--fz-sm); }
.footer__links a { text-decoration: none; color: var(--ink-2); }
.footer__links a:hover { color: var(--red); }
.footer__legal { grid-column: 1 / -1; color: var(--dim); font-size: var(--fz-xs); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---- Scroll reveal (progressive; JS adds .reveal) ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero__grid, .product__grid, .who__grid { grid-template-columns: 1fr; }
  .product__grid--flip .product__copy { order: 1; }
  .product__grid--flip .product__aside { order: 2; }
  .questions, .steps { grid-template-columns: 1fr; }
  .ledger { max-width: 560px; }
}
@media (max-width: 760px) {
  .nav__links, .nav__inner > .btn { display: none; }
  .nav__toggle { display: block; }
  .nav__mobile:not([hidden]) { display: grid; gap: 4px; padding: 8px var(--gutter) 18px; border-top: 1px solid var(--line); background: var(--paper); }
  .nav__mobile a { padding: 12px 4px; text-decoration: none; font-weight: 500; color: var(--ink-2); }
  .nav__mobile .btn { margin-top: 8px; justify-content: center; color: #fff; }
  .ledger { padding: 22px 18px 16px; }
  .ledger::before { left: 18px; right: 18px; }
  .ledger__company { white-space: normal; }
  .ledger__total { flex-direction: column; align-items: flex-start; gap: 4px; }
  .row { grid-template-columns: 22px 1fr; }
  .row__count { grid-column: 2; text-align: left; margin-top: -6px; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .row, .ledger__total { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
