/* ══ v14 · Lapidação (Laura, 11/11/2026) ═════════════════════════════════
 * Alvo: docs/lady-site/revisoes/2026-11-11-lapidacao/alvo.md
 * Hero volta ao frame de 73a496c28 (shader v9 de fundo + celular ao lado do
 * painel) com o texto de hoje e as duas moedas aprovadas flutuando ao lado do
 * título. Microinterações só onde respondem a um gesto; nenhuma cor nova
 * (noite, creme, azul do Real #4c8dd0, marfim do Dólar #ece7de).
 * Movimento reduzido: tudo no estado final (o JS nem liga html.lp).
 *
 * Ficha de reuso (lady-reuso):
 * | capacidade              | canônico                         | decisão  | por quê |
 * | fundo em shader          | site/v9/shader.js                | reusar + estender (modo plans) | já encena real × dólar |
 * | celular ao lado do painel| .phone.v9-phone--l (v9.css)      | reusar   | frame aprovado em 73a496c28 |
 * | moedas                   | SVG da rodada 13 (index.html)    | reusar, só reposicionar | aprovadas |
 * | luz no cursor            | v7.js (.v7-card)                 | estender a bento/planos/segurança | mesma gramática |
 * | sheen de botão, títulos por linha, FAQ animada, luz no rodapé | nenhum | criar | o site público é HTML estático em camadas site/vN; o DS da web (components/public-site) não serve aqui |
 * Referências usadas: nenhuma do acervo (search_references sem resultado para a capacidade);
 * gramática da Basis Theory e exodus.com já decupadas em verification/akrus-business-hero-basis-2026-11-10.md e v9.css. */

/* ── H1 · o fim da hero chega à cor da página, sem degrau ─────────────── */
.v8-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: clamp(200px, 22vw, 320px);
  background: linear-gradient(180deg, transparent, var(--ink));
  pointer-events: none;
}
.v8-hero .v7-hero__head {
  position: relative;
  z-index: 3;
}
.v8-hero .v8-dash-wrap {
  z-index: 2;
}

/* ── H3 · moedas flutuando ao lado do título ──────────────────────────── */
.k-float {
  --cw: clamp(92px, 10.4vw, 158px);
  --cx: min(40vw, 610px);
  position: absolute;
  z-index: 4;
  top: calc(var(--nav-h) + clamp(40px, 6vw, 88px));
  left: 0;
  right: 0;
  height: clamp(220px, 24vw, 360px);
  pointer-events: none;
}
.k-float__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.k-flt {
  --fy: 0px;
  --fr: 0deg;
  --mx: 0;
  --my: 0;
  --lift: 0;
  position: absolute;
  width: var(--cw);
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(calc(var(--mx) * var(--depth, 14px)), calc(var(--fy) + var(--my) * var(--depth, 14px)), 0)
    rotate(var(--fr));
  will-change: transform;
}
.k-flt--brl {
  --depth: 18px;
  top: 6%;
  left: calc(50% - var(--cx) - var(--cw) / 2);
}
.k-flt--usd {
  --depth: 12px;
  top: 30%;
  left: calc(50% + var(--cx) - var(--cw) / 2);
}
.k-flt svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transform-origin: 50% 46%;
}
.k-flt--brl svg {
  rotate: -6deg;
}
.k-flt--usd svg {
  rotate: 6deg;
}
/* a sombra de contato sai da peça: fica no chão e respira com a altura */
.k-flt svg > ellipse:first-child {
  display: none;
}
.k-flt::after {
  display: none; /* banca 11/11: sem chão na cena, a sombra flutuava no céu */
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -16%;
  height: 11%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent);
  transform: translateY(calc(var(--fy) * -1)) scale(calc(1 - var(--lift) * 0.3));
  opacity: calc(0.9 - var(--lift) * 0.45);
  pointer-events: none;
}
/* brilho que atravessa a face no hover (a luz é a mesma do bento: de cima, à esquerda) */
.k-flt::before {
  content: '';
  position: absolute;
  inset: 4% 12% 14%;
  z-index: 1;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.6) 50%, transparent 62%);
  background-size: 260% 100%;
  background-position: 120% 0;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.k-flt:hover::before {
  background-position: -60% 0;
  transition: background-position 0.9s cubic-bezier(0.2, 0.7, 0.1, 1);
}
/* clique: gira duas meias-voltas e assenta (cara ou coroa) */
.k-flt.is-spin svg {
  animation: k-flt-spin 0.9s cubic-bezier(0.3, 0.6, 0.2, 1);
}
@keyframes k-flt-spin {
  0%,
  44%,
  100% {
    transform: scaleX(1);
    filter: brightness(1);
  }
  22%,
  66% {
    transform: scaleX(0.04);
    filter: brightness(1.7);
  }
}
.js .k-flt {
  animation: k-flt-in 1.3s var(--ease) both;
}
.js .k-flt--brl {
  --from: -36px;
  animation-delay: 0.55s;
}
.js .k-flt--usd {
  --from: 36px;
  animation-delay: 0.7s;
}
@keyframes k-flt-in {
  from {
    opacity: 0;
    translate: var(--from) 26px;
    scale: 0.86;
  }
}

/* ── H2 · celular ao lado do painel: entra depois do painel ───────────── */
.js .v8-hero .v9-phone--l {
  animation-delay: 0.9s;
}

/* tablet: o título ocupa a largura; moedas encostam nas bordas, menores */
@media (max-width: 1080px) {
  .k-float {
    --cw: clamp(76px, 10.5vw, 112px);
    --cx: min(43vw, 440px);
  }
}
/* celular: composição própria — as moedas saem das laterais do título e
   ganham um palco no fluxo, entre os botões e o painel */
@media (max-width: 700px) {
  .k-float {
    --cw: 76px;
    position: relative;
    top: auto;
    /* banca r2: o link tem ~15 px de área de toque abaixo do texto; o respiro
       visível fica igual (~24 px) acima e abaixo das moedas */
    height: 137px;
    margin-top: 0;
  }
  .k-flt--brl,
  .k-flt--usd {
    top: 10px;
  }
  .k-flt--brl {
    left: calc(50% - 112px);
  }
  .k-flt--usd {
    left: calc(50% + 36px);
  }
  .v8-hero .v8-dash-wrap {
    margin-top: 0;
  }
}

/* ── M1 · botões: brilho que segue o cursor e pressão ─────────────────── */
.lp .btn {
  --bx: 50%;
  --by: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.lp .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(120px circle at var(--bx) var(--by), rgba(76, 141, 208, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.lp .btn:hover::after {
  opacity: 1;
}
/* banca 11/11: no botão claro o brilho lia como mancha; fica só a pressão */
.lp .btn--light::after {
  display: none;
}
.lp .btn:active {
  transform: scale(0.97);
  transition: transform 0.08s ease;
}
/* o secundário da hero e do fecho: o sublinhado acende e se aproxima do texto */
.lp .v7-hero .btn--ghost,
.lp .v7-close .btn--ghost {
  transition:
    text-decoration-color 0.35s ease,
    text-underline-offset 0.35s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.lp .v7-hero .btn--ghost::after,
.lp .v7-close .btn--ghost::after {
  display: none;
}
.lp .v7-hero .btn--ghost:hover,
.lp .v7-close .btn--ghost:hover,
.lp .v7-hero .btn--ghost:focus-visible,
.lp .v7-close .btn--ghost:focus-visible {
  text-decoration-color: #4c8dd0;
  text-underline-offset: 8px;
}
/* M2 · links do rodapé */
.lp .foot__nav a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition:
    background-size 0.4s cubic-bezier(0.2, 0.7, 0.1, 1),
    color 0.2s ease;
}
.lp .foot__nav a:hover,
.lp .foot__nav a:focus-visible {
  background-size: 100% 1px;
}

/* ── M3 · aresta que acende perto do cursor nos cartões escuros ───────── */
.lp .bx,
.lp .pm-col,
.lp .k-sg__cell {
  --gx: 50%;
  --gy: 0%;
  --ga: 0;
}
.lp .bx::after,
.lp .pm-col::after,
.lp .k-sg__cell::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(280px circle at var(--gx) var(--gy), rgba(143, 192, 245, 0.6), transparent 70%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  opacity: var(--ga);
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.lp .pm-col,
.lp .k-sg__cell {
  position: relative;
}

/* ── M4 · títulos de seção: linhas sobem atrás de máscara ─────────────── */
.lp .lp-line {
  display: block;
  overflow: clip;
  overflow-clip-margin: 0.14em;
}
.lp .lp-line > .lp-in {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1.05s cubic-bezier(0.2, 0.7, 0.1, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.lp .lp-title.is-in .lp-line > .lp-in {
  transform: none;
}

/* ── M5 · perguntas: altura animada; o + reage ao cursor ──────────────── */
.lp #perguntas .faq__item > p {
  overflow: hidden;
}
.lp #perguntas .faq__item:not([open]) summary:hover .faq__plus {
  transform: rotate(90deg);
}

/* ── M6 · rodapé: luz sobre a marca gigante ───────────────────────────── */
.lp .foot__mark {
  --fx: 50%;
  --fy2: 50%;
  --fa: 0;
  position: relative;
}
.lp .foot__mark::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(420px circle at var(--fx) var(--fy2), rgba(143, 192, 245, 0.2), transparent 70%);
  mix-blend-mode: screen;
  opacity: var(--fa);
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* ── S1 · shader atrás dos planos ─────────────────────────────────────── */
.pm {
  position: relative;
  isolation: isolate;
}
.pm > .v9-shader {
  z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
  .js .k-flt,
  .k-flt.is-spin svg {
    animation: none;
  }
  .k-flt {
    transform: none;
  }
  .lp .lp-line > .lp-in {
    transform: none;
    transition: none;
  }
}

/* S1 · o shader dos planos só soma luz sobre o fundo aprovado (tinta preta + screen) */
.pm > .v9-shader {
  mix-blend-mode: screen;
}

/* ── M7 · retratos inclinam para o cursor ─────────────────────────────── */
.lp .k-pq__t {
  --tx: 0deg;
  --ty: 0deg;
  transform: perspective(700px) rotateY(var(--tx)) rotateX(var(--ty)) scale(var(--ts, 1));
  transition:
    transform 0.6s cubic-bezier(0.2, 0.7, 0.1, 1),
    box-shadow 0.4s ease,
    opacity 0.7s var(--ease, ease),
    translate 0.9s var(--ease, ease);
  /* preserva a cascata de entrada (v13) */
  transition-delay: 0s, 0s, calc(var(--d, 0) * 70ms), calc(var(--d, 0) * 70ms);
}
.lp .k-pq__t--hero {
  --ts: 1.25;
}
.lp .k-pq__t.is-tilt {
  transition-duration: 0.12s, 0.4s, 0.7s, 0.9s;
  box-shadow: 0 30px 50px -24px rgba(17, 17, 19, 0.45);
}

/* ── M8 · CTA magnético ───────────────────────────────────────────────── */
.lp .v7-hero .btn--light,
.lp .v7-close .btn--light {
  transition:
    translate 0.35s cubic-bezier(0.2, 0.7, 0.1, 1),
    transform 0.25s cubic-bezier(0.2, 0.7, 0.1, 1),
    background-color 0.2s ease;
}

/* M6 mais presente: a luz do rodapé precisa ser vista */
.lp .foot__mark::after {
  background: radial-gradient(440px circle at var(--fx) var(--fy2), rgba(143, 192, 245, 0.34), transparent 70%);
}
