/*
 * wikpik.ai first screen (owner 2026-10-30: "the hero looks the same as m360m.ai — make it its own"): the big W mark and
 * "Wikpik" on a brand-green gradient panel (wiklik-home.tpl.html .wk-brandhero), the badge, title, short text and the
 * highlighted line below them, all white. Only the DEEP greens of the palette are stops (--wkh-stops, read by
 * scripts/e2e/wiklik-chat-story-local.mjs): white on the lightest stop (#00795b, --accent) is 5.40:1, so every text passes
 * WCAG AA; the mark's dot keeps the bright brand green (graphics only). The gradient drifts slowly; reduced motion = still.
 * Mobile-first: a rounded panel inside the page's 16 px gutter at 390 px, wider type from 760 / 1000 px. No size depends on
 * an image load (the mark has width/height), so nothing shifts.
 */
.wk-brandhero {
  --wkh-stops: #00332a, #00533d, #00664d, #00795b;
  position: relative; isolation: isolate; overflow: hidden; width: 100%; box-sizing: border-box;
  display: grid; gap: 12px; justify-items: center; text-align: center;
  padding: 28px 18px 24px; border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, #00332a 0%, #00533d 30%, #00795b 55%, #00664d 78%, #00332a 100%);
  background-size: 240% 240%; background-position: 0% 50%;
  animation: wkh-drift 22s ease-in-out infinite alternate;
  box-shadow: 0 30px 60px -36px color-mix(in srgb, #00332a 80%, transparent);
}
/* soft light where the mark sits + a fine grain of dots: presence without a second colour */
.wk-brandhero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 18%, rgba(0, 164, 124, .28), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 1.5px) 0 0 / 18px 18px;
}
@keyframes wkh-drift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .wk-brandhero { animation: none; } }

.wk-brandlock { margin: 0; display: flex; align-items: center; justify-content: center; gap: clamp(10px, 3vw, 22px); direction: ltr; }
.wk-brandmark { width: clamp(78px, 22vw, 150px); height: auto; aspect-ratio: 240 / 184; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .25)); }
.wk-brandword { font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 19vw, 148px); line-height: .9; letter-spacing: -0.055em; color: #fff; text-shadow: 0 10px 30px rgba(0, 0, 0, .22); }

.wk-brandhero .wk-badge { color: #fff; background: rgba(0, 0, 0, .24); border: 1px solid rgba(255, 255, 255, .22); }
.wk-brandhero .wk-pulse { background: #fff; animation-name: wkh-pulse; }
@keyframes wkh-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.wk-hero-head .wk-brandhero h1 { color: #fff; font-size: clamp(28px, 7.6vw, 40px); line-height: 1.08; max-width: 20ch; }
.wk-brandhero .wk-sub { color: #fff; font-size: 16px; font-weight: 600; max-width: 56ch; }
.wk-brandhero .wk-learn { color: #fff; background: rgba(0, 0, 0, .22); border-color: rgba(255, 255, 255, .26); font-size: 16px; }
.wk-brandhero ::selection { background: #fff; color: #00533d; }

@media (min-width: 760px) {
  .wk-brandhero { padding: 40px 32px 32px; gap: 14px; }
}
@media (min-width: 1000px) {
  .wk-brandhero { padding: 48px 48px 36px; border-radius: 36px; }
  .wk-hero-head .wk-brandhero h1 { font-size: clamp(40px, 3.6vw, 56px); max-width: 24ch; }
  .wk-brandhero .wk-sub { font-size: 19px; }
  .wk-brandhero .wk-learn { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .wk-brandhero .wk-pulse { animation: none; } }
