/*
 * wikpik.ai hero v15 (owner 2026-11-09: "no celular está péssimo"). Loaded after wk-home.css (that file is at its size cap).
 *   1. the chat inside the hero phone SCROLLS (as the wiklik demos): wk-hero.js follows the last message while a demo plays;
 *      after it ends the person scrolls it back freely or taps "Ver de novo" (.wkh-replay, in the composer row);
 *   2. a message's time is on its own last line, before the reply buttons, so nothing inside a bubble overlaps (it used to
 *      sit over the buttons' padding);
 *   3. on a phone (under 760 px) the hero phone is close to the full width (>= 80 % of the screen at 360-414 px) and the
 *      15 service figurinhas are a grid of 5 per row above it (.wkh-rail), never beside or over the phone; the hero's own
 *      invite button hides under 900 px (the sticky bar has it).
 */
.wkh-rail { display: contents; }
/* 8 figurinhas in the taller column (was 7): their size from the column height */
.wkh-fig { --s: clamp(22px, calc(100cqh / 8 - 29px), 52px); }
.wkh-lbl { overflow-wrap: normal; word-break: normal; hyphens: auto; }

/* 1. the chat scrolls */
.wkh-art .wkh-body { justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .25) transparent; }
.wkh-art .wkh-body > .wkh-conv:not([hidden]) { margin-top: auto; flex: 0 0 auto; }
.wkh-art .wkh-body > .wkh-typing { flex: 0 0 auto; }
.wkh-replay {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35em; min-height: 2.3em; padding: 0 .9em; border: 0; border-radius: 999px;
  background: #fff; color: #00664d; font: inherit; font-size: .9em; font-weight: 700; cursor: pointer; box-shadow: 0 1px .5px rgba(0, 0, 0, .13);
}
.wkh-replay::before { content: "\21BB"; font-size: 1.1em; line-height: 1; }
.wkh-replay[hidden] { display: none; }
.wkh-replay:focus-visible { outline: 2px solid #00664d; outline-offset: 2px; }
.wkh-replay:not([hidden]) ~ .wkh-mic, .wkh-input:has(.wkh-replay:not([hidden])) .wkh-field { display: none; }
.wkh-input:has(.wkh-replay:not([hidden])) { justify-content: center; }

/* 2. the time on its own last line, before the buttons */
.wkh-art .wkh-m { padding-bottom: .35em; }
.wkh-art .wkh-m time { position: static; display: block; margin-top: .15em; text-align: end; line-height: 1.15; }
.wkh-art .wkh-m.out time { padding-inline-end: 1.45em; }
.wkh-art .wkh-ticks { bottom: .45em; }
.wkh-art .wkh-quick { margin: .35em -.6em -.35em; }
.wkh-art .wkh-quick span { padding: .55em .3em .6em; }
.wkh-art .wkh-btns { margin: .4em 0 .15em; }
.wkh-art .wkh-file time, .wkh-art .wkh-file .wkh-quick { grid-column: 1 / -1; }

/* 3. a phone */
@media (max-width: 759px) {
  .wkh-first { height: auto; grid-template-rows: auto auto; }
  .wkh-grid, .wrap.wkh-grid { padding-left: 12px; padding-right: 12px; }
  .wkh-art { display: flex; flex-direction: column; height: auto; max-width: none; gap: 12px; }
  /* owner 2026-11-09: all 15 services at once, 5 per row above the phone (no sideways scroll), labels on one line
     (wk-hero.js shrinks a label's font until it fits, never cuts it) */
  .wkh-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 2px; margin: 0; padding: 0; }
  .wkh-col, .wkh-col-in { display: contents; }
  .wkh-fig { --s: 40px; width: auto; min-width: 0; padding: 0; gap: 3px; grid-template-columns: minmax(0, 1fr); }
  .wkh-lbl { width: 100%; font-size: 10.5px; line-height: 1.2; white-space: nowrap; overflow: visible; letter-spacing: -.01em; }
  /* overflow: hidden keeps the 9 : 19.5 box fixed (a long chat scrolls inside instead of growing the phone) */
  .wkh .wkh-phone { width: 100%; height: auto; max-width: none; aspect-ratio: 9 / 19.5; align-self: stretch; overflow: hidden; }
  /* owner 2026-11-10: the second phone lines up with the hero one: same 12 px inset (.wkh-grid), same width, same 9 : 19.5 */
  .wka-art { padding-left: 12px; padding-right: 12px; justify-items: stretch; }
  .wka-art .wkh-phone { width: 100%; height: auto; max-width: none; aspect-ratio: 9 / 19.5; overflow: hidden; }
}
/* the sticky bar (.fab, under 900 px) already has "Pedir convite" + WhatsApp: the hero's own button only on a laptop */
@media (max-width: 899px) { .wkh .wkh-ctas { display: none; } }

/* 4. the demos in the product's WhatsApp formats (owner 2026-11-09; texts_wikpik_v15.py says which format each one copies):
   photos and drawn images in their own proportion (object-fit: cover, a fixed aspect ratio), image captions, document messages
   with a file-type icon, a link preview, numbered / bulleted text, the approval card's detail line. */
.wkh-art .wkh-photo { max-width: 80%; padding: .2em .2em .35em; }
.wkh-art .wkh-photo.out { max-width: 70%; }
.wkh-art .wkh-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .55em; }
.wkh-art .wkh-photo img.wkh-wide { aspect-ratio: 16 / 9; }
.wkh-art .wkh-photo > p, .wkh-art .wkh-photo > time { padding-inline: .4em; }
.wkh-cap { margin: 0; padding: .4em .4em 0; display: grid; gap: .12em; }
.wkh-cap > span:not(.wkh-meta), .wkh-cap > b { display: block; }
.wkh-cap > span:not(.wkh-link, .wkh-meta) { color: #3b4a54; font-size: .92em; }
.wkh-img { position: relative; display: block; overflow: hidden; border-radius: .55em; box-sizing: border-box; }
/* groceries: stores x totals, the cheapest highlighted */
.wkh-img-cmp { display: grid; gap: .25em; padding: .6em .65em; background: #fff; border: 1px solid #e3ddd3; }
.wkh-img-cmp > b { font-size: .95em; color: #00533d; }
.wkh-cmp-row { display: block; padding: .3em .45em; border-radius: .4em; background: #f6f3ee; }
.wkh-cmp-row small { font-size: .9em; color: #111b21; }
.wkh-cmp-row.is-best { background: #d9f2e8; box-shadow: inset 0 0 0 1.5px #00a884; }
.wkh-cmp-row.is-best small { font-weight: 800; color: #00533d; }
/* money: the bar card */
.wkh-img-bars { display: grid; gap: .15em; padding: .6em .65em .5em; background: #fff; border: 1px solid #e3ddd3; }
.wkh-img-bars > b { font-size: .95em; color: #00533d; margin-bottom: .1em; }
/* documents: the cover images (a slide, a sheet) */
.wkh-img-deck { aspect-ratio: 16 / 9; padding: .7em .8em; display: grid; align-content: space-between; color: #fff;
  background: linear-gradient(135deg, #00533d, #00a47c); }
.wkh-img-deck > b { font-size: 1.05em; line-height: 1.15; }
.wkh-mini { display: flex; align-items: flex-end; gap: .3em; height: 2.6em; }
.wkh-mini i { flex: 1; height: var(--v); border-radius: .2em .2em 0 0; background: rgba(255, 255, 255, .85); }
.wkh-img-sheet { aspect-ratio: 16 / 9; padding: .55em .65em; display: grid; grid-template-rows: auto 1fr; gap: .35em; background: #fff; border: 1px solid #cfe3d8; }
.wkh-img-sheet > b { font-size: .95em; color: #1d6f42; }
.wkh-cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: #cfe3d8; border: 1px solid #cfe3d8; }
.wkh-cells i { background: #fff; min-height: .9em; }
.wkh-cells i:nth-child(-n+5) { background: #e3f1e8; }
/* podcasts: the episode art */
.wkh-img-pod { aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(140deg, #3a2a8c, #b03a7e); }
.wkh-img-pod.is-b { background: linear-gradient(140deg, #0b5d4b, #e0a43a); }
.wkh-art .wkh-pod { max-width: 62%; }
/* Brain: the graph image (nodes placed in % of the picture; labels are text, translated) */
.wkh-img-graph { aspect-ratio: 1; background: #f4faf7; border: 1px solid #d5e9e0; }
.wkh-img-graph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wkh-gn { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: max-content; max-width: 42%; font-style: normal; }
.wkh-gn span { display: block; padding: .22em .5em; border-radius: 999px; font-size: .74em; font-weight: 700; line-height: 1.15; text-align: center; color: #fff; background: #00795b; white-space: normal; }
.wkh-gn.is-place span { background: #c4520f; }
.wkh-gn.is-event span { background: #2b5797; }
.wkh-gn.is-perc span { background: #fff; color: #00533d; box-shadow: inset 0 0 0 1.5px #00a884; }
/* a document message: file-type icon, name, size, caption */
.wkh-docmsg { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .55em; align-items: center; min-width: 72%; }
.wkh-docmsg .wkh-cap, .wkh-docmsg time { grid-column: 1 / -1; }
.wkh-docmsg .wkh-cap { padding: .35em 0 0; }
.wkh-ft { position: relative; width: 2.3em; height: 2.9em; border-radius: .3em; display: grid; place-items: end center; padding-bottom: .35em; box-sizing: border-box;
  font-size: .62em; font-weight: 800; letter-spacing: .02em; color: #fff; background: #5f6b73; clip-path: polygon(0 0, 70% 0, 100% 24%, 100% 100%, 0 100%); }
.wkh-ft::before { content: ""; position: absolute; top: 0; right: 0; width: 30%; height: 24%; background: rgba(255, 255, 255, .45); }
.wkh-ft[data-ext="pptx"] { background: #c4320a; }
.wkh-ft[data-ext="pdf"] { background: #d93025; }
.wkh-ft[data-ext="xlsx"] { background: #1d6f42; }
.wkh-ft[data-ext="docx"] { background: #185abd; }
.wkh-fn { display: grid; min-width: 0; }
.wkh-fn b { font-size: .92em; overflow-wrap: anywhere; }
.wkh-fn small { color: #667781; font-size: .78em; }
.wkh-docmsg.out .wkh-fn small { color: #4f6b5a; }
/* a link with its preview */
.wkh-lp { max-width: 82%; padding-top: .25em; }
.wkh-lp-card { display: block; margin: 0 -.35em .35em; border-radius: .5em; overflow: hidden; background: #f0f2f5; }
.wkh-lp-card img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.wkh-lp-t { display: grid; gap: .1em; padding: .4em .55em .45em; }
.wkh-lp-t small { color: #667781; font-size: .8em; }
/* text with lines */
.wkh-ul, .wkh-ol { margin: .3em 0 .1em; padding-inline-start: 1.2em; display: grid; gap: .2em; }
.wkh-ol li .wkh-link { display: block; font-size: .86em; }
.wkh-appr .wkh-detail { font-size: .95em; }
.wkh-appr > p { margin: .1em 0; }
.wkh-art .wkh-body:focus-visible { outline: 2px solid #00a884; outline-offset: -2px; }

/* 5. WhatsApp's own rendering (owner 2026-11-09: "would a WhatsApp user believe it's real?"), measured on WhatsApp for
   Android light at a 390 px screen and kept in em of the phone's font (13.5 px there):
   - the composer GROWS line by line (white box, 6 lines at most, then it scrolls), never one line scrolling sideways;
   - "digitando…" under the contact's name in the header, not a bubble;
   - bubbles 7.5 px radius, a tail on the first message of each side's run, 85 % wide at most;
   - the time (and the blue ticks) float at the end of the LAST text line, inside the bubble (.wkh-meta), and drop to a
     line of their own only when that line is full;
   - interactive reply buttons are white bars BELOW the bubble (.wkh-ia > .wkh-quick), one per row, blue labels;
   - image + caption: the picture fills the bubble with a 3 px frame; documents: a grey row (icon, name, pages · type ·
     size) under the first-page preview a PDF gets; a link: its preview card inside the bubble. */
.wkh-field {
  display: block; flex: 1; min-width: 0; height: auto; min-height: 2.3em; max-height: calc(6 * 1.3em + 1.1em); box-sizing: border-box;
  padding: .55em .95em; border-radius: 1.15em; overflow-x: hidden; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  line-height: 1.3; font-size: .95em; color: #111b21; background: #fff; scrollbar-width: none;
}
.wkh-field.is-typing::after { display: inline-block; vertical-align: -.15em; }
.wkh-input { align-items: flex-end; background: transparent; }
.wkh-who small.wkh-typing { display: block; align-self: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; font-size: .8em; font-style: normal; opacity: .85; }
.wkh-who small.wkh-typing[hidden] { display: none; }
.wkh-who:has(.wkh-typing:not([hidden])) small:not(.wkh-typing) { display: none; }

.wkh-art .wkh-body { gap: .2em; padding: .5em .75em .45em; }
.wkh-art .wkh-conv { gap: .2em; }
.wkh-art .wkh-m.in + .wkh-m.out, .wkh-art .wkh-m.out + .wkh-m.in { margin-top: .45em; }
.wkh-art .wkh-m, .wkh-art .wkh-bub {
  max-width: 85%; padding: .35em .5em .32em .6em; border-radius: .55em; font-size: 1em; line-height: 1.32; color: #111b21;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.wkh-art .wkh-m.wkh-card, .wkh-art .wkh-m.wkh-docmsg { min-width: 0; }
.wkh-art .wkh-appr { border: 0; }
.wkh-art .wkh-m p { margin: 0; }
/* the tail: the first message of a run of each side */
.wkh-art .wkh-m.in:is(:first-child, .wkh-m.out + *) { border-start-start-radius: 0; }
.wkh-art .wkh-m.out:is(:first-child, .wkh-m.in + *) { border-start-end-radius: 0; }
.wkh-art .wkh-m.in:is(:first-child, .wkh-m.out + *)::before, .wkh-art .wkh-m.out:is(:first-child, .wkh-m.in + *)::before {
  content: ""; position: absolute; top: 0; width: .55em; height: .7em; background: inherit;
}
.wkh-art .wkh-m.in:is(:first-child, .wkh-m.out + *)::before { inset-inline-start: -.5em; clip-path: polygon(100% 0, 0 0, 100% 100%); }
.wkh-art .wkh-m.out:is(:first-child, .wkh-m.in + *)::before { inset-inline-end: -.5em; clip-path: polygon(0 0, 100% 0, 0 100%); }
[dir="rtl"] .wkh-art .wkh-m.in:is(:first-child, .wkh-m.out + *)::before { clip-path: polygon(0 0, 100% 0, 0 100%); }
[dir="rtl"] .wkh-art .wkh-m.out:is(:first-child, .wkh-m.in + *)::before { clip-path: polygon(100% 0, 0 0, 100% 100%); }
/* the time + ticks at the end of the last line */
.wkh-meta {
  float: inline-end; position: relative; top: .42em; margin: -.1em 0 0 .75em; display: inline-flex; align-items: center; gap: .2em;
  font-size: .7em; font-weight: 400; line-height: 1; color: #667781; white-space: nowrap; letter-spacing: 0;
}
.wkh-art .wkh-m time { position: static; display: inline; margin: 0; padding: 0; font-size: 1em; color: inherit; }
.wkh-art .wkh-m.out time { padding: 0; }
.wkh-art .wkh-meta .wkh-ticks { position: relative; inset: auto; display: inline-block; width: 1.5em; height: .85em; }
.wkh-art .wkh-meta .wkh-ticks::before, .wkh-art .wkh-meta .wkh-ticks::after { width: .42em; height: .78em; border-width: 0 1.6px 1.6px 0; }
.wkh-art .wkh-meta .wkh-ticks::before { left: .15em; }
.wkh-art .wkh-meta .wkh-ticks::after { left: .55em; }
.wkh-art .wkh-m p::after, .wkh-art .wkh-bub > :last-child::after, .wkh-art .wkh-ul li:last-child::after,
.wkh-art .wkh-ol li:last-child::after { content: ""; display: table; clear: both; }
/* interactive: the bubble, then its reply buttons below it */
.wkh-art .wkh-m.wkh-ia { padding: 0; background: none; box-shadow: none; display: grid; gap: 2px; min-width: 70%; max-width: 85%; }
.wkh-art .wkh-m.wkh-ia::before { display: none; }
.wkh-art .wkh-ia > .wkh-bub { position: relative; max-width: none; background: #fff; display: grid; gap: .12em; border-start-start-radius: 0; }
.wkh-art .wkh-ia > .wkh-bub::before { content: ""; position: absolute; top: 0; inset-inline-start: -.5em; width: .55em; height: .7em; background: #fff; clip-path: polygon(100% 0, 0 0, 100% 100%); }
[dir="rtl"] .wkh-art .wkh-ia > .wkh-bub::before { clip-path: polygon(0 0, 100% 0, 0 100%); }
.wkh-art .wkh-ia > .wkh-quick { display: grid; grid-auto-flow: row; gap: 2px; margin: 0; border: 0; }
.wkh-art .wkh-ia > .wkh-quick span {
  padding: .62em .5em; border: 0; border-radius: .55em; background: #fff; box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
  text-align: center; color: #027eb5; font-weight: 500; font-size: .95em;
}
.wkh-art .wkh-ia > .wkh-quick span + span { border-inline-start: 0; }
.wkh-art .wkh-ia .wkh-quick span.is-tapped { background: #e9edef; }
.wkh-art .wkh-appr b:first-child { font-weight: 700; }
.wkh-art .wkh-appr .wkh-detail { font-weight: 700; display: block; }
.wkh-art .wkh-appr small { display: block; color: #111b21; font-size: 1em; }
.wkh-art .wkh-prod .wkh-prod-img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: .4em; margin: -.15em -.3em .3em; width: calc(100% + .6em); }
/* image + caption */
.wkh-art .wkh-photo { padding: .2em; max-width: 78%; }
.wkh-art .wkh-photo img, .wkh-art .wkh-photo .wkh-img { border-radius: .4em; }
.wkh-art .wkh-photo > p, .wkh-art .wkh-photo .wkh-cap { padding: .3em .35em .12em; }
.wkh-art .wkh-cap > span:not(.wkh-link, .wkh-meta) { color: #111b21; font-size: 1em; }
.wkh-art .wkh-cap > b + span:not(.wkh-link, .wkh-meta) { color: #667781; font-size: .88em; }
.wkh-art .wkh-pod { max-width: 78%; }
.wkh-art .wkh-pod img { aspect-ratio: 16 / 10; }
/* documents */
.wkh-art .wkh-docmsg { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0; row-gap: 0; padding: .2em; min-width: 72%; max-width: 80%; }
.wkh-art .wkh-docmsg > .wkh-ft { margin: 0; align-self: stretch; width: 3.1em; height: auto; padding: .55em .5em .55em .55em; box-sizing: border-box; clip-path: none;
  border-radius: .4em 0 0 .4em; background: rgba(11, 20, 26, .05); display: grid; place-items: center; font-size: 1em; color: transparent; }
.wkh-art .wkh-docmsg > .wkh-ft::before {
  content: attr(data-ext); position: static; display: grid; place-items: end center; width: 2em; height: 2.5em; padding-bottom: .3em; box-sizing: border-box;
  border-radius: .2em; font-size: .62em; font-weight: 800; color: #fff; background: var(--ft, #5f6b73); clip-path: polygon(0 0, 70% 0, 100% 24%, 100% 100%, 0 100%);
  text-transform: uppercase; font-size: .55em;
}
.wkh-art .wkh-docmsg > .wkh-ft[data-ext="pptx"] { --ft: #c4320a; }
.wkh-art .wkh-docmsg > .wkh-ft[data-ext="pdf"] { --ft: #d93025; }
.wkh-art .wkh-docmsg > .wkh-ft[data-ext="xlsx"] { --ft: #1d6f42; }
.wkh-art .wkh-docmsg > .wkh-ft[data-ext="docx"] { --ft: #185abd; }
.wkh-art .wkh-docmsg > .wkh-fn { border-radius: 0 .4em .4em 0; padding: .5em .6em .5em .1em; align-content: center; background: rgba(11, 20, 26, .05); }
.wkh-art .wkh-docmsg.out > .wkh-ft, .wkh-art .wkh-docmsg.out > .wkh-fn { background: rgba(0, 80, 40, .07); }
.wkh-art .wkh-docmsg .wkh-cap { grid-column: 1 / -1; padding: .35em .35em .12em; }
.wkh-docprev { grid-column: 1 / -1; display: block; margin-bottom: .2em; border-radius: .4em .4em 0 0; overflow: hidden; aspect-ratio: 16 / 9; }
.wkh-docprev.is-deck { display: grid; align-content: space-between; padding: .7em .8em; box-sizing: border-box; color: #fff; background: linear-gradient(135deg, #00533d, #00a47c); }
.wkh-docprev.is-deck > b { font-size: 1.05em; }
.wkh-docprev.is-page { display: grid; align-content: start; gap: .45em; padding: .9em 1.2em; box-sizing: border-box; background: #fff; aspect-ratio: 16 / 8; box-shadow: inset 0 0 0 1px #e9edef; }
.wkh-docprev.is-page i { display: block; height: .3em; border-radius: 2px; background: #dfe5e7; }
.wkh-docprev.is-page i:nth-child(1) { width: 45%; background: #8696a0; }
.wkh-docprev.is-page i:nth-child(3n) { width: 70%; }
/* a link with its preview */
.wkh-art .wkh-lp { padding: .2em .2em .32em; max-width: 80%; }
.wkh-art .wkh-lp-card { margin: 0 0 .3em; border-radius: .4em; background: #f0f2f5; }
.wkh-art .wkh-lp > p { padding: 0 .35em; }
/* a caption: blocks, the last text inline so the time floats on its last line */
.wkh-art .wkh-cap { display: block; }
.wkh-art .wkh-cap > b, .wkh-art .wkh-cap > span:not(.wkh-meta) { display: block; }
.wkh-art .wkh-cap > :nth-last-child(2):not(.wkh-meta) { display: inline; }
