/* ==========================================================================
   VAELIS SHARED TOKENS  -  the one file every Vaelis web page may load.
   (landing #558, product page #30, and the compatibility / quick-start pages)

   Brand rules (VAELIS_BRAND_ASSETS.md): lime is the only accent and lives in
   ONE variable; two looks only - lime on black, or black on lime; Saira for all
   marketing type; no glows, gradients, drop shadows or blur.

   Use: wrap page content in  <div class="vl"> ... </div>.
   A section switches look with  class="vl-lime"  (black on lime). Components
   read --vl-bg / --vl-ink / --vl-accent, so they follow the look by themselves.
   ========================================================================== */

@font-face {
  font-family: 'Saira';
  src: url('fonts/Saira-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --vl-lime: #BCE21F;            /* provisional - the final hex changes HERE only */
  --vl-price-yellow: #FFD60A;    /* the big Vaelis price numeral only */
  --vl-black: #000000;
  --vl-white: #FFFFFF;
  --vl-ease: cubic-bezier(.16, 1, .3, 1);       /* arrivals */
  --vl-ease-flood: cubic-bezier(.7, 0, .2, 1);  /* the lime flood */
  --vl-font: 'Saira', 'Arial Narrow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --vl-gutter: clamp(20px, 5vw, 88px);
  --vl-max: 1320px;
}

/* ---- the two looks ---- */
.vl {
  --vl-bg: var(--vl-black);
  --vl-ink: var(--vl-white);
  --vl-accent: var(--vl-lime);
  --vl-line: rgba(255, 255, 255, .16);
  --vl-dim: rgba(255, 255, 255, .72);
  background: var(--vl-bg);
  color: var(--vl-ink);
  font-family: var(--vl-font);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
}
.vl .vl-lime {
  --vl-bg: var(--vl-lime);
  --vl-ink: var(--vl-black);
  --vl-accent: var(--vl-black);
  --vl-line: rgba(0, 0, 0, .28);
  --vl-dim: rgba(0, 0, 0, .78);
  background: var(--vl-bg);
  color: var(--vl-ink);
}
.vl *, .vl *::before, .vl *::after { box-sizing: border-box; }
.vl img { display: block; max-width: 100%; height: auto; }
/* resets at zero specificity, so every .vl-* class below wins over them */
:where(.vl) :where(p, h1, h2, h3, figure, dl, dd) { margin: 0; }
:where(.vl) :where(p) { font-size: inherit; line-height: inherit; color: inherit; }
:where(.vl) :where(h1, h2, h3) { font-family: var(--vl-font); font-size: inherit; color: inherit; }
:where(.vl) :where(a) { color: inherit; }
.vl :focus-visible { outline: 3px solid var(--vl-ink); outline-offset: 3px; }

/* ---- type roles (written as .vl .x so they also win over the theme's .woocommerce h2 / h3) ---- */
.vl .vl-label {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--vl-accent);
}
.vl .vl-display {
  margin: 0;
  font-family: var(--vl-font);
  color: var(--vl-ink);
  font-stretch: 78%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
  font-size: clamp(44px, 8.4vw, 132px);
}
.vl .vl-display--md { font-size: clamp(36px, 5.6vw, 84px); }
.vl .vl-display--sm { font-size: clamp(26px, 3vw, 40px); line-height: .95; }
.vl .vl-lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--vl-dim); max-width: 34em; }
.vl .vl-small { font-size: 14px; line-height: 1.5; color: var(--vl-dim); }

/* ---- layout ---- */
.vl-wrap { width: 100%; max-width: calc(var(--vl-max) + 2 * var(--vl-gutter)); margin: 0 auto; padding-left: var(--vl-gutter); padding-right: var(--vl-gutter); }
.vl-sec { position: relative; padding: clamp(64px, 9vw, 136px) 0; overflow: hidden; }
.vl-rule { height: 2px; background: var(--vl-accent); border: 0; margin: 0; }

/* ---- buttons: solid = the primary action (Buy), ghost = the second (Try) ---- */
.vl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 52px;
  padding: 0 1.7em;
  border: 2px solid var(--vl-accent);
  border-radius: 999px;
  background: var(--vl-accent);
  color: var(--vl-bg) !important;
  font-family: var(--vl-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--vl-ease);
}
.vl-btn--ghost { background: transparent; color: var(--vl-accent) !important; }
.vl-btn:hover { transform: translateX(4px); }
.vl-btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---- chips ---- */
.vl-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.vl-chips li {
  padding: .45em 1em;
  border: 1px solid var(--vl-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ---- motion: type rises from behind a hard edge. Pure CSS, runs once on load. ---- */
.vl-rise { display: block; overflow: hidden; padding-bottom: .06em; }
.vl-rise > span { display: block; animation: vl-rise .9s var(--vl-ease) both; animation-delay: calc(var(--i, 0) * .17s + .1s); }
@keyframes vl-rise { from { transform: translateY(112%); } to { transform: none; } }

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