/* Vertex demo: shared foundations */
:root {
  --ink: #12241d;
  --ink-2: #34483f;
  --muted: #5a6a63;
  --paper: #f5f3ec;
  --paper-2: #ece9df;
  --card: #fffdf8;
  --white: #ffffff;
  --green: #0b3a2d;
  --green-2: #145844;
  --green-3: #1d7358;
  --lime: #c8f36e;
  --lime-soft: #e8f9bd;
  --lime-bright: #dcff92;
  --orange: #e76f43;
  --line: rgba(18, 36, 29, .13);
  --line-strong: rgba(18, 36, 29, .24);
  --shadow-soft: 0 18px 50px -28px rgba(11, 58, 45, .28);
  --shadow-lift: 0 30px 80px -38px rgba(11, 58, 45, .48);
  --font-sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 30px;
  --max: 1460px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
button { border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid #1d6fff; outline-offset: 3px; }
::selection { background: var(--lime); color: var(--green); }

.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;
}
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 1000;
  background: var(--green); color: var(--white); text-decoration: none;
  padding: 12px 18px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

.vx-logo {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink); line-height: 1;
}
.vx-logo__mark {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--green); border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.vx-logo__mark svg { width: 22px; height: 22px; }
.vx-logo__word {
  font-size: 14px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase;
}
.vx-logo--light { color: var(--white); }
.vx-logo--light .vx-logo__mark { background: var(--lime); }
.vx-logo--light .vx-logo__mark svg path { fill: var(--green); }

.site-head {
  width: min(100% - 56px, var(--max));
  margin: 0 auto;
  padding: 26px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: relative; z-index: 20;
}
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 10px 13px; border-radius: 999px; transition: background .18s ease, color .18s ease;
}
.site-nav a:hover { background: rgba(255,255,255,.65); color: var(--ink); }
.site-nav .nav-divider { width: 1px; height: 22px; background: var(--line); margin: 0 5px; }

.btn {
  --btn-bg: var(--green);
  --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 11px 18px;
  border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg);
  text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.1;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 25px -16px rgba(11,58,45,.55); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn--lime { --btn-bg: var(--lime); --btn-fg: var(--green); }
.btn--lime:hover { background: var(--lime-bright); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--green);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px var(--green); }
.btn--white { --btn-bg: var(--white); --btn-fg: var(--green); }
.btn--small { min-height: 36px; padding: 8px 14px; font-size: 13px; }
.btn--icon { width: 42px; min-height: 42px; padding: 0; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center;
  background: transparent; color: var(--ink-2); transition: background .18s ease, color .18s ease;
}
.icon-btn:hover { background: rgba(18,36,29,.07); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--green-2);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-3); box-shadow: 0 0 0 4px rgba(29,115,88,.12);
}
.eyebrow--lime { color: var(--lime); }
.eyebrow--lime::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(200,243,110,.14); }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 26px; padding: 5px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  background: var(--paper-2); color: var(--ink-2); white-space: nowrap;
}
.pill--live { background: var(--lime-soft); color: var(--green); }
.pill--demo { background: rgba(255,255,255,.72); color: var(--green); box-shadow: inset 0 0 0 1px rgba(11,58,45,.12); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #25a96b; box-shadow: 0 0 0 3px rgba(37,169,107,.14); }
.status-dot--pulse { animation: vx-pulse 2.4s ease-out infinite; }

@keyframes vx-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37,169,107,.14); }
  50% { box-shadow: 0 0 0 6px rgba(37,169,107,.04); }
}
@keyframes vx-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes vx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vx-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .5; }
  40% { transform: translateY(-4px); opacity: 1; }
}
@keyframes vx-spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 300;
  transform: translate(-50%, 18px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--green); color: var(--white); font-size: 13px; font-weight: 650;
  box-shadow: 0 18px 50px -18px rgba(11,58,45,.55);
  transition: opacity .22s ease, transform .22s ease;
  max-width: calc(100vw - 32px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: var(--lime); }

.site-foot {
  width: min(100% - 56px, var(--max));
  margin: 0 auto;
  padding: 28px 0 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
}
.site-foot a { color: var(--ink-2); text-decoration: none; font-weight: 650; }
.site-foot a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .site-head { width: min(100% - 36px, var(--max)); padding-top: 18px; }
  .site-nav .nav-link--optional { display: none; }
  .site-nav .nav-divider { display: none; }
  .site-foot { width: min(100% - 36px, var(--max)); flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .site-head { width: calc(100% - 28px); }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 8px 9px; font-size: 13px; }
  .vx-logo__word { font-size: 12px; }
  .vx-logo__mark { width: 31px; height: 31px; }
  .site-nav .btn { min-height: 38px; padding: 8px 12px; font-size: 12px; }
}
