/* ==========================================================================
   VisualBeats — page stylesheet. Loaded after base.css.

   The page keeps the Tubeneur system (Void Black surfaces, Clash Display +
   Inter, Signal Gold as the one CTA signal) and borrows the app's own purple
   as a product accent, so the page looks like the software it sells.
   Purple values are taken from the app's webui/style.css.
   ========================================================================== */

:root {
  --vb: #8657E8;          /* app --accent      */
  --vb-hover: #9A72F2;    /* app --accent-hover */
  --vb-dim: rgba(134, 87, 232, 0.14);
  --vb-line: rgba(134, 87, 232, 0.38);
}

/* Product accent tile, shared by several sections */
.vb-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--vb-line);
  background: var(--vb-dim);
  color: var(--vb);
}
.vb-tile svg { width: 20px; height: 20px; }

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

.vb-hero {
  position: relative;
  padding-block: 80px 64px;
  overflow: hidden;
}
.vb-hero::before {
  content: "";
  position: absolute;
  top: -300px;
  right: -180px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(134, 87, 232, 0.16) 0%, transparent 62%);
  pointer-events: none;
}
.vb-hero .wrap { position: relative; }

.vb-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--s7);
  align-items: center;
}

.vb-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--graphite);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--s4);
}
.vb-badge img { width: 26px; height: 26px; border-radius: 7px; }
.vb-badge .tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vb);
  border: 1px solid var(--vb-line);
  border-radius: 4px;
  padding: 2px 6px;
}

.vb-hero h1 { margin-bottom: var(--s3); }

.vb-hero__tagline {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--vb);
  margin-bottom: var(--s4);
}

.vb-hero__lead { max-width: 56ch; margin-bottom: var(--s5); }

.vb-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-bottom: var(--s3);
}

.vb-hero__note { font-size: 13px; color: var(--text-dim); }

.vb-hero__art { justify-self: center; width: min(100%, 360px); }
.vb-hero__art img { width: 100%; }

/* --- Spec strip ----------------------------------------------------------- */

.spec-strip {
  border-block: 1px solid var(--border);
  background: var(--graphite);
}
.spec-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3) var(--s6);
  padding-block: 18px;
}
.spec-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.spec-strip svg { width: 15px; height: 15px; color: var(--vb); flex: none; }

/* --- Steps ---------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
}

.step {
  position: relative;
  padding: var(--s5) var(--s4) var(--s4);
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.step__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--vb);
  margin-bottom: var(--s3);
}
.step h3 { font-size: 20px; margin-bottom: var(--s2); }
.step p { font-size: 14px; color: var(--text-dim); }

/* --- Beat timeline diagram ------------------------------------------------ */

.beats {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--graphite);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.beats__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--graphite-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.beats__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--vb-line);
  background: var(--vb-dim);
  color: var(--vb);
  letter-spacing: 0.06em;
}
.beats__chip svg { width: 12px; height: 12px; }

.beats__track {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1.25fr 0.95fr;
  gap: 1px;
  background: var(--border);
}

.beat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--s4) var(--s3);
  background: var(--void);
}

.beat__time {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.beat__wave {
  width: 100%;
  height: 40px;
  color: var(--vb);
  opacity: 0.85;
}

/* The marker line is the point the picture changes on */
.beat__mark {
  position: relative;
  height: 1px;
  background: var(--border);
}
.beat__mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vb);
  box-shadow: 0 0 0 3px rgba(134, 87, 232, 0.18);
}

.beat__scene {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--graphite);
}
.beat__num {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.beat__line { font-size: 14px; line-height: 1.45; }
/* The active word, as the burned-in captions highlight it */
.beat__line b {
  color: var(--vb);
  font-weight: 600;
}

.beats__foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--graphite-light);
  font-size: 13px;
  color: var(--text-dim);
}

/* --- Feature grid --------------------------------------------------------- */

.vb-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}

.vb-feature {
  padding: var(--s5) var(--s4);
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.vb-feature:hover {
  border-color: var(--vb-line);
  transform: translateY(-2px);
}
.vb-feature .vb-tile { margin-bottom: var(--s4); }
.vb-feature h3 { font-size: 20px; margin-bottom: var(--s2); }
.vb-feature p { font-size: 15px; color: var(--text-dim); }

/* --- Caption presets ------------------------------------------------------ */

.presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 820px;
  margin-inline: auto;
}
.preset {
  padding: 10px 18px;
  border: 1px solid var(--vb-line);
  border-radius: var(--r-pill);
  background: var(--vb-dim);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

/* --- Script Pro companion band -------------------------------------------- */

.companion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s6) var(--s5);
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.companion h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: var(--s2); }
.companion p { color: var(--text-dim); max-width: 62ch; }

/* --- System requirements -------------------------------------------------- */

.sysreq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
  max-width: 920px;
  margin-inline: auto;
}
.sysreq li {
  display: flex;
  gap: 12px;
  padding: var(--s4);
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.sysreq svg { width: 18px; height: 18px; margin-top: 3px; flex: none; color: var(--vb); }
.sysreq strong { display: block; margin-bottom: 2px; }
.sysreq span { font-size: 14px; color: var(--text-dim); }

/* --- Pricing (undecided) -------------------------------------------------- */

.vb-price {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding: var(--s6) var(--s5);
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.vb-price__figure {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-dim);
  margin-bottom: var(--s3);
}
.vb-price p { color: var(--text-dim); }
.vb-price .btn { margin-top: var(--s5); }

.vb-price__trial {
  display: grid;
  gap: 10px;
  margin: var(--s5) 0 0;
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
  text-align: left;
}
.vb-price__trial li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--text-dim);
}
.vb-price__trial svg { width: 16px; height: 16px; margin-top: 4px; flex: none; color: var(--vb); }

/* --- Version note --------------------------------------------------------- */

.version-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s2) var(--s4);
  max-width: 720px;
  margin: var(--s5) auto 0;
  padding: var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text-dim);
}
.version-note strong { color: var(--text); font-weight: 600; }

/* --- Closing CTA ---------------------------------------------------------- */

.vb-cta {
  position: relative;
  text-align: center;
  padding: 72px var(--s5);
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.vb-cta::before {
  content: "";
  position: absolute;
  inset: auto 0 -60% 0;
  height: 320px;
  background: radial-gradient(ellipse at 50% 100%, rgba(134, 87, 232, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.vb-cta > * { position: relative; }
.vb-cta h2 { margin-bottom: var(--s3); }
.vb-cta p { max-width: 54ch; margin: 0 auto var(--s5); }
.vb-cta__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1020px) {
  .vb-hero__grid { grid-template-columns: 1fr; gap: var(--s5); }
  .vb-hero__art { order: -1; justify-self: start; width: min(55%, 220px); }
  .vb-hero__lead { max-width: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .vb-features { grid-template-columns: 1fr 1fr; }
  /* The diagram reads left-to-right as time, so it scrolls rather than wraps */
  .beats__track {
    grid-template-columns: repeat(4, minmax(230px, 1fr));
    overflow-x: auto;
    scrollbar-width: thin;
  }
}

@media (max-width: 760px) {
  .vb-hero { padding-block: 40px 48px; }
  .vb-hero__cta .btn { flex: 1 1 100%; }
  .steps,
  .vb-features,
  .sysreq { grid-template-columns: 1fr; }
  .companion { padding: var(--s5) var(--s4); }
  .companion .btn { width: 100%; }
  .vb-price,
  .vb-cta { padding: 48px var(--s4); }
  .vb-cta__row .btn { flex: 1 1 100%; }
}
