/*
 * wikpik.ai hero, 2026-11-11 (owner Gene). Loaded after wk-home.css and wk-hero-m.css (both at their size cap).
 *   1. a phone matches the laptop: ONE column of service figurinhas on each side of the phone (8 + 7, the template's
 *      order), never a grid above it, and the columns never scroll: every figurinha is visible, its size taken
 *      from the column height (container query), each button at least 40 px tall;
 *   2. the phone is as large as the screen allows, at every width: its height fills the space between the sticky header and
 *      the bottom bar (.fab, under 900 px), its width follows the 9 : 19.5 ratio, and it never gets wider than the room left
 *      between the two columns — so the whole phone is on screen at once, nothing under the header or the bottom buttons;
 *   3. a tapped figurinha shows its conversation complete and whole inside the phone (wk-hero.js fits it, no scroll, no crop);
 *   4. the line with the Brazilian flag at the foot of the green panel (.wkh-br).
 * --wkh-room = the screen height minus the header (60), the panel's top padding and gaps (24) and the bottom bar (72 + 8
 * under 900 px; none from 900 px).
 */
.wkh { --wkh-room: calc(100svh - 164px); --wkh-colw: 58px; --wkh-gap: 6px; }
@media (min-width: 760px) { .wkh { --wkh-colw: 74px; --wkh-gap: 12px; } }
@media (min-width: 900px) { .wkh { --wkh-room: calc(100svh - 92px); } }

@media (max-width: 999px) {
  .wkh-first { height: auto; grid-template-rows: auto auto; }
  .wkh-art {
    display: grid; grid-template-areas: "a phone b"; grid-template-columns: var(--wkh-colw) auto var(--wkh-colw);
    grid-template-rows: auto; column-gap: var(--wkh-gap); justify-content: center; align-items: stretch;
    width: 100%; max-width: none; height: auto; margin: 0 auto; scroll-margin-top: 72px;
  }
  .wkh-rail { display: contents; }
  .wkh .wkh-phone {
    grid-area: phone; align-self: center; justify-self: center; aspect-ratio: 9 / 19.5; height: auto; max-width: none;
    width: min(calc(100vw - 24px - 2 * var(--wkh-colw) - 2 * var(--wkh-gap)), calc(var(--wkh-room) * 9 / 19.5));
  }
}

/* the two columns: as tall as the phone, figurinhas spread over that height, no scroll at any size */
.wkh-art .wkh-col { display: block; container-type: size; height: auto; align-self: stretch; min-height: 0; }
.wkh-art .wkh-col-in {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: space-around;
  gap: 0; padding: 0; overflow: hidden; -webkit-mask-image: none; mask-image: none;
}
.wkh-art .wkh-fig {
  --s: clamp(26px, calc(100cqh / 8 - 24px), 56px); width: 100%; min-width: 0; min-height: 40px; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; gap: 2px;
}
.wkh-art .wkh-lbl {
  width: 100%; font-size: clamp(8.5px, 1.6cqh, 11px); line-height: 1.1; text-align: center; white-space: normal;
  overflow-wrap: anywhere; hyphens: auto; letter-spacing: -.01em;
}

/* the laptop: the same rule, the phone fills the panel height under the header (no fixed cap) */
@media (min-width: 1000px) {
  .wkh-art { max-width: none; grid-template-columns: 86px auto 86px; justify-content: center; }
  .wkh .wkh-phone { height: max(340px, calc(100svh - 148px)); width: auto; max-width: none; }
}

/* 5. the second phone (.wka-art) is always the same size as the first one (owner 2026-11-11) */
.wka { --wkh-room: calc(100svh - 164px); --wkh-colw: 58px; --wkh-gap: 6px; }
@media (min-width: 760px) { .wka { --wkh-colw: 74px; --wkh-gap: 12px; } }
@media (min-width: 900px) { .wka { --wkh-room: calc(100svh - 92px); } }
@media (max-width: 999px) {
  .wka-art .wkh-phone {
    aspect-ratio: 9 / 19.5; height: auto; max-width: none; justify-self: center;
    width: min(calc(100vw - 24px - 2 * var(--wkh-colw) - 2 * var(--wkh-gap)), calc(var(--wkh-room) * 9 / 19.5));
  }
}
@media (min-width: 1000px) {
  .wka-art .wkh-phone { height: max(340px, calc(100svh - 148px)); width: auto; max-width: none; }
}

/* a demo shown whole: the conversation is scaled down to the chat's height by wk-hero.js (zoom), never cut */
.wkh-art .wkh-conv.is-fit { flex: 0 0 auto; }

/* 4. the Brazilian line */
.wkh-br {
  margin: 14px 0 0; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 15px; line-height: 1.35;
}
.wkh-br-flag { flex: 0 0 auto; width: 24px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
@media (max-width: 999px) { .wkh-br { justify-content: center; text-align: start; font-size: 14px; } }

/* owner 2026-11-11: the beta pill sits at the foot of the green panel and the Brazilian line under the hero, larger */
.wkh .wkh-beta { margin: 14px 0 0; }
.wkh-after .wkh-br { color: inherit; justify-content: center; font-size: 18px; margin: 0; }
.wkh-after .wkh-br-flag { width: 30px; }
@media (min-width: 1000px) { .wkh-after .wkh-br { font-size: 20px; } }

/* 6. the figurinhas read as buttons (owner 2026-11-12: "as pessoas não sabem que podem apertar o botão")
   - .wkh-try: one line over the phone, "Experimente: toque num serviço", in the static HTML (no shift); the phone gives up
     its height (--wkh-try) so the hero still fits the first screen
   - every figurinha: a stronger ring and lift, so it looks like a chip to tap
   - the first figurinha pulses until the person touches any figurinha (wk-hero.js adds .is-touched); reduced motion = a
     still ring, no pulse
   - a pointer that hovers (desktop): a chevron points from the figurinha to the phone */
.wkh, .wka { --wkh-try: 30px; --wkh-room: calc(100svh - 164px - var(--wkh-try)); }
@media (min-width: 900px) { .wkh, .wka { --wkh-room: calc(100svh - 92px - var(--wkh-try)); } }
.wkh-art { grid-template-areas: "try try try" "a phone b"; }
@media (max-width: 999px) { .wkh-art { grid-template-rows: auto auto; } }
@media (min-width: 1000px) {
  .wkh-art { grid-template-rows: auto minmax(0, 1fr); }
  .wkh .wkh-phone, .wka-art .wkh-phone { height: max(340px, calc(100svh - 148px - var(--wkh-try))); }
}
.wkh-try {
  grid-area: try; justify-self: center; margin: 0 0 6px; min-height: 24px; padding: 3px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px; color: #00332a; background: #fff; font-size: 13px; font-weight: 800;
  line-height: 1.2; text-align: center; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .55);
}
.wkh-try-hand { flex: 0 0 auto; color: #00a47c; }
.wkh-art .wkh-fig-in { box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .7), 0 0 0 3px rgba(255, 255, 255, .42); }
.wkh-art .wkh-fig:active .wkh-fig-in { transform: scale(.94); }
.wkh-art .wkh-fig[aria-pressed="true"] .wkh-fig-in { box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .6), 0 0 0 3px #fff, 0 0 0 6px rgba(255, 255, 255, .3); }
.wkh-art .wkh-fig:focus-visible .wkh-fig-in { box-shadow: 0 0 0 3px #00332a, 0 0 0 6px #fff; }
.wkh-art:not(.is-touched) .wkh-col-a .wkh-fig:first-child .wkh-fig-in::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid #ffd66b; pointer-events: none;
  animation: wkh-tap 1.8s ease-out infinite;
}
@keyframes wkh-tap { 0% { transform: scale(1); opacity: .95; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
@media (hover: hover) and (pointer: fine) {
  .wkh-art .wkh-fig::after {
    position: absolute; top: calc(var(--s) / 2); transform: translateY(-50%); font-size: 18px; font-weight: 800; line-height: 1;
    color: #ffd66b; opacity: 0; transition: opacity .15s ease; pointer-events: none;
  }
  .wkh-art .wkh-col-a .wkh-fig::after { content: "\203A"; inset-inline-end: -2px; }
  .wkh-art .wkh-col-b .wkh-fig::after { content: "\2039"; inset-inline-start: -2px; }
  [dir="rtl"] .wkh-art .wkh-col-a .wkh-fig::after { content: "\2039"; }
  [dir="rtl"] .wkh-art .wkh-col-b .wkh-fig::after { content: "\203A"; }
  .wkh-art .wkh-fig:hover::after, .wkh-art .wkh-fig:focus-visible::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .wkh-art:not(.is-touched) .wkh-col-a .wkh-fig:first-child .wkh-fig-in::after { animation: none; transform: scale(1.18); }
  .wkh-art .wkh-fig::after { transition: none; }
  .wkh-art .wkh-fig:active .wkh-fig-in { transform: none; }
}
