/* VIBE/LAB v0.3.0 — shared foundation (tokens, typography, buttons, layout, reveal). Scoped under .vibelab-site; header/footer styles excluded (managed by Flatsome UX Builder). */

.vibelab-site {
  --bg-main: #1a1614;
  --bg-main-rgb: 26, 22, 20;
  --bg-surface: #2a2421;
  --bg-surface-hover: #332b27;
  --bg-elevated: #3a302c;
  --bg-input: #211b18;

  --text-primary: #fdfcf0;
  --text-secondary: #bca89f;
  --text-muted: #8f7c74;

  --accent: #9acd32;
  --accent-strong: #7ead1d;
  --accent-light: #c5ed6d;
  --accent-soft: #e5f7b7;
  --accent-glow: rgba(154, 205, 50, 0.18);

  --accent-secondary: #808000;
  --accent-secondary-light: #a3a33a;

  --border: rgba(253, 252, 240, 0.10);
  --border-subtle: rgba(188, 168, 159, 0.16);
  --border-accent: rgba(154, 205, 50, 0.46);
  --focus-ring: rgba(197, 237, 109, 0.58);

  --success: #9acd32;
  --warning: #d5b35e;
  --danger: #d46b5a;

  --max: 1240px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* v0.3.1 fix — explicit typography tokens so VIBE/LAB headings, body copy,
   buttons and form controls never fall back to Flatsome's default heading
   color/font. Flatsome sets `h1..h6{color:#555}`, `label{color:#222}` and
   `blockquote{color:#333}` as bare-element rules; because our original CSS
   only ever set these values on .vibelab-site itself (inherited), Flatsome's
   explicit (if low-specificity) declarations were winning over inheritance. */
.vibelab-site {
  --vibelab-font-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --vibelab-font-display: var(--vibelab-font-sans);
  --vibelab-text-primary: var(--text-primary);
  --vibelab-text-muted: var(--text-secondary);
  --vibelab-accent: var(--accent);
  --vibelab-heading-size-1: clamp(2.8rem, 5.2vw, 5.2rem);
  --vibelab-heading-size-2: clamp(2rem, 3.8vw, 3.8rem);
}
.vibelab-site, .vibelab-site *, .vibelab-site *::before, .vibelab-site *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
.vibelab-site {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip; /* clip (not hidden) so the author sticky sidebar is not broken */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.vibelab-site button, .vibelab-site input, .vibelab-site select, .vibelab-site textarea {
  font: inherit;
  color: inherit;
}
.vibelab-site button, .vibelab-site a {
  -webkit-tap-highlight-color: transparent;
}
.vibelab-site a {
  color: inherit;
  text-decoration: none;
}
.vibelab-site p, .vibelab-site h1, .vibelab-site h2, .vibelab-site h3, .vibelab-site h4, .vibelab-site dl, .vibelab-site dd {
  margin-top: 0;
  text-wrap: pretty;
}

/* v0.3.1 fix — explicit color + font-family for every text-bearing element.
   Specificity here (.vibelab-site + element) already beats Flatsome's bare
   element selectors, so no !important is required; the rule just needs to
   exist. More specific VIBE/LAB rules (e.g. .author-story h2, .hero-line em)
   still win where an accent color is intended. */
.vibelab-site h1,
.vibelab-site h2,
.vibelab-site h3,
.vibelab-site h4,
.vibelab-site h5,
.vibelab-site h6,
.vibelab-site p,
.vibelab-site span,
.vibelab-site li,
.vibelab-site dt,
.vibelab-site dd,
.vibelab-site label,
.vibelab-site small,
.vibelab-site strong,
.vibelab-site b,
.vibelab-site em,
.vibelab-site i,
.vibelab-site blockquote,
.vibelab-site legend,
.vibelab-site a {
  font-family: var(--vibelab-font-sans);
  color: var(--vibelab-text-primary);
}

.vibelab-site button,
.vibelab-site input,
.vibelab-site select,
.vibelab-site textarea {
  font-family: var(--vibelab-font-sans);
}

.vibelab-site h1,
.vibelab-site h2,
.vibelab-site h3,
.vibelab-site h4,
.vibelab-site h5,
.vibelab-site h6 {
  font-weight: 700;
  width: auto; /* neutralize Flatsome's h1..h6{width:100%} */
}
.vibelab-site .container {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
  max-width: none; /* Flatsome's bare .container caps at 1080px */
  padding-left: 0;  /* Flatsome adds 15px/15px; our width calc already reserves the gutter */
  padding-right: 0;
}
.vibelab-site :focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}
.vibelab-site .button, .vibelab-site .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(229, 247, 183, 0.55);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--bg-main);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(154, 205, 50, 0.14);
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap; /* v0.3.3 fix — buttons in a flex row (e.g. .author-inline-cta)
     were shrinking below their own content width and wrapping to 2 lines */
  flex-shrink: 0;
}
.vibelab-site .button:hover, .vibelab-site .button:focus-visible, .vibelab-site .button-primary:hover, .vibelab-site .button-primary:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #a9da45 0%, #d2f37f 100%);
  border-color: var(--accent-light);
  box-shadow: 0 14px 30px rgba(154, 205, 50, 0.22);
}
.vibelab-site .button:active, .vibelab-site .button-primary:active {
  transform: translateY(0) scale(0.98);
}
.vibelab-site .button-small {
  min-height: 40px;
  padding-inline: 18px;
  font-size: 13px;
}
.vibelab-site .button-secondary {
  background: rgba(42, 36, 33, 0.72);
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
  box-shadow: none;
}
.vibelab-site .button-secondary:hover, .vibelab-site .button-secondary:focus-visible {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--accent-light);
  box-shadow: 0 10px 24px rgba(20, 17, 15, 0.2);
}
.vibelab-site .eyebrow {
  color: var(--text-secondary);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 12px;
}
.vibelab-site .eyebrow b {
  color: var(--text-muted);
  padding: 0 6px;
}
.vibelab-site .section {
  padding: clamp(56px, 6vw, 88px) 0; /* v0.3.3 fix — was clamp(76px,7.5vw,112px); tightened section rhythm */
}
.vibelab-site .section-heading {
  max-width: 900px;
  margin-bottom: 48px;
}
.vibelab-site .section-title {
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 10px 0 0;
  color: var(--accent-light); /* v0.3.3 fix — unify all primary section H2s to the
     signature lime treatment (matches .author-story h2). Headings inside small
     card/box components (e.g. #demo-title) are not .section-title and are
     intentionally unaffected. */
}
.vibelab-site .section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 65%, transparent 100%);
}
.vibelab-site .section-heading > p:last-child {
  color: var(--text-secondary);
  max-width: 500px;
  margin-top: 14px;
}
.vibelab-site .split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 40px;
  align-items: end;
}
.vibelab-site .split-heading > p {
  margin-bottom: 6px;
}
.vibelab-site .section-divider {
  position: relative;
  width: min(var(--max), calc(100% - 64px));
  height: 18px;
  margin: 22px auto; /* v0.3.3 fix — was 36px */
  border: 0;
  overflow: visible;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(128, 128, 0, 0.48) 14%,
    rgba(188, 168, 159, 0.26) 50%,
    rgba(128, 128, 0, 0.48) 86%,
    transparent
  ) center / 100% 1px no-repeat;
}
.vibelab-site .section-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: min(220px, 28%);
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-light), var(--accent), transparent);
  box-shadow: 0 0 14px rgba(154, 205, 50, 0.16);
}
.vibelab-site .section-divider::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 14%;
  right: 14%;
  height: 5px;
  background:
    radial-gradient(circle at 2px 50%, var(--accent-secondary-light) 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 2px) 50%, var(--accent-secondary-light) 0 2px, transparent 3px);
}
.vibelab-site .center-action {
  text-align: center;
  margin-top: 36px;
}

.vibelab-site .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.vibelab-site .reveal.visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 760px) {
.vibelab-site .container {
    width: calc(100% - 40px);
  }
.vibelab-site .split-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }
.vibelab-site .section-heading {
    margin-bottom: 32px;
  }
.vibelab-site .version-line {
    margin-top: 50px;
    flex-direction: column;
    gap: 6px;
  }
}
@media (max-width: 380px) {
.vibelab-site .container {
    width: calc(100% - 32px);
  }
}
@media (prefers-reduced-motion: reduce) {
html {
    scroll-behavior: auto;
  }
.vibelab-site, .vibelab-site *, .vibelab-site *::before, .vibelab-site *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
.vibelab-site .reveal {
    opacity: 1;
    transform: none;
  }
}

/* v0.3.2 fix — the earlier 100vw/negative-margin breakout used a mismatched
   reference frame (`left:50%` resolves against the parent's width, while
   `margin-left:-50vw` resolves against the viewport width) and pushed the
   whole body off-center whenever #main's width differed from the viewport
   even slightly. Flatsome's #main has no max-width of its own by default, so
   the VIBE/LAB body is already edge-to-edge without any breakout trick; this
   just removes any stray width/margin so nothing can accidentally shrink it.
   (If the site's Customizer "Site Width" is set to Boxed or Framed, #main
   itself is intentionally narrowed by Flatsome — that is a site-wide setting
   outside this template's scope, not a bug in these files.) */
.vibelab-site {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
