/* =========================================================
   Worksonics — AI Hub (coming soon) page
   Pure white page (#ffffff) as requested: character runs on the
   left, message + early-access sign-up on the right.
   ========================================================= */
.page-aihub, .page-aihub main { background: #ffffff; }

.ws-ah {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: var(--header-height) 0 var(--space-7);
  font-family: var(--font);
  color: var(--text-on-light);
  background: #ffffff;
  overflow-x: clip;
}
.ws-ah__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-9); align-items: start; }

/* ---------- left: running character ---------- */
/* stays centred in the visible screen (below the header) while the copy scrolls */
.ws-ah__runner {
  position: sticky;
  top: var(--header-main-height);
  height: calc(100vh - var(--header-main-height));
  height: calc(100svh - var(--header-main-height));
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-ah__stage { position: relative; width: 100%; max-width: 680px; transform: translateX(-32%); }   /* body sits in the column's centre; the dust trail can run off the left edge */
.ws-ah__video, .ws-ah__runner img { display: block; width: 100%; max-height: 68svh; height: auto; object-fit: contain; }
.ws-ah__track {                    /* speed line on the ground under the character */
  position: absolute;
  left: 0; right: 6%;
  bottom: 4%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--color-accent) 0 40px, transparent 40px 70px);
  background-size: 70px 3px;
  opacity: 0.7;
  animation: ws-ah-track 0.6s linear infinite;
}
@keyframes ws-ah-track { to { background-position: -70px 0; } }

/* ---------- right: copy ---------- */
.ws-ah__badge {
  display: inline-flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: 7px 14px;
  border: 1px solid var(--line-on-light);
  font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--link);
}
.ws-ah__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 0 rgba(207, 245, 90, 0.8); animation: ws-ah-pulse 1.8s ease-out infinite; }
@keyframes ws-ah-pulse { to { box-shadow: 0 0 0 10px rgba(207, 245, 90, 0); } }

.ws-ah__title { margin: 0 0 var(--space-5); font-size: var(--fs-h1); font-weight: var(--fw-bold); line-height: 1.05; letter-spacing: -0.02em; color: var(--color-dark); }
.ws-ah__title span { display: block; background: linear-gradient(90deg, var(--color-dark), var(--link) 60%, var(--color-accent-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ws-ah__lead { max-width: 520px; margin: 0 0 var(--space-6); font-size: var(--fs-lead); line-height: 1.6; color: var(--text-on-light-muted); }

.ws-ah__features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-6); margin: 0 0 var(--space-6); padding: 0; list-style: none; }
.ws-ah__features li { display: flex; gap: var(--space-4); font-size: var(--fs-small); line-height: 1.5; color: var(--text-on-light-muted); }
.ws-ah__features b { display: block; margin-bottom: 2px; font-size: var(--fs-body); color: var(--text-on-light); }
.ws-ah__ico { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--color-dark); color: var(--color-accent); }
.ws-ah__ico .ws-icon { width: 20px; height: 20px; }

.ws-ah__signup { padding: var(--space-5) var(--space-6); background: var(--color-bg); border-left: 4px solid var(--color-accent); }
.ws-ah__h2 { margin: 0 0 var(--space-2); font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: 1.2; color: var(--color-dark); }
.ws-ah__note { margin: 0 0 var(--space-5); font-size: var(--fs-body); color: var(--text-on-light-muted); }
.ws-ah__form { display: flex; gap: var(--space-3); }
.ws-ah__input {
  flex: 1; min-width: 0;
  padding: 0 var(--space-5);
  height: 50px;
  border: 0;
  border-bottom: 1px solid var(--color-dark);
  background: linear-gradient(90deg, var(--color-dark), var(--color-accent)) no-repeat left bottom / 0 2px, #fff;
  font-family: var(--font); font-size: var(--fs-body); color: var(--text-on-light);
  outline: none;
  border-radius: 0;
  transition: background-size var(--dur-line) var(--ease);
}
.ws-ah__input:focus { background-size: 100% 2px, auto; }
.ws-ah__input.is-invalid { border-bottom-color: var(--error); }
.ws-ah__btn { flex: none; height: 50px; }
.ws-ah__btn .ws-icon { width: 18px; height: 18px; }
.ws-ah__msg { min-height: 1.4em; margin: var(--space-2) 0 0; font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--link); }
.ws-ah__msg.is-error { color: var(--error); }
.ws-ah__fine { margin: 0; font-size: var(--fs-xs); color: var(--text-on-light-muted); }

@media (prefers-reduced-motion: reduce) {
  .ws-ah__track, .ws-ah__badge i { animation: none; }
}

.ws-ah__copy { padding-top: var(--space-7); }

/* =========================================================
   Tablet (≤ 1024px) and mobile (≤ 767px): character above the copy
   ========================================================= */
@media (max-width: 1024px) {
  .ws-ah__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ws-ah__runner { position: static; height: auto; padding-top: var(--space-6); }
  .ws-ah__stage { max-width: 520px; transform: none; }
  .ws-ah__copy { padding-top: var(--space-5); }
}
@media (max-width: 767px) {
  .ws-ah__features { grid-template-columns: minmax(0, 1fr); }
  .ws-ah__signup { padding: var(--space-5); }
  .ws-ah__form { flex-direction: column; }
  .ws-ah__input { flex: none; }
  .ws-ah__btn { width: 100%; }
}
