/* lp.raquete.store — página de entrada do grupo.
   Estrutura: coluna de texto + celular com a conversa, prova de ofertas e aviso.
   Importar tokens.css antes. Cores da marca vêm dos tokens. */

@font-face {
  font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap;
  src: url("fonts/barlow-condensed-800-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed"; font-style: italic; font-weight: 900; font-display: swap;
  src: url("fonts/barlow-condensed-900-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/barlow-condensed-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
}

:root {
  /* altura reservada para a barra fixa do botão no celular */
  --rh: calc(98px + env(safe-area-inset-bottom));
  --court-line-soft: color-mix(in srgb, var(--brand-white) 5%, transparent);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-color: var(--border) var(--background-deep);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
::selection { background: var(--brand-primary); color: var(--text-inverse); }
a:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }
[hidden] { display: none !important; }

body {
  min-height: 100vh; min-height: 100dvh;
  color: var(--text-primary);
  background-color: var(--background);
  /* textura de rede, bem discreta */
  background-image:
    repeating-linear-gradient(90deg, var(--court-line-soft) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, var(--court-line-soft) 0 1px, transparent 1px 26px);
  font: 500 var(--font-size-base) / 1.45 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.nb { white-space: nowrap; }

/* ---------- Primeira tela ---------- */
.pg {
  position: relative;
  width: 100%; max-width: 560px; margin: 0 auto;
  height: calc(100vh - var(--rh)); height: calc(100svh - var(--rh));
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.info { display: contents; }

.brand { order: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; }
.logo { display: block; width: clamp(128px, 46vw, 205px); height: auto; flex: 0 1 auto; min-width: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 6px 11px 6px 9px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--duration-fast) ease-out;
}
.pill:hover { background: var(--surface-hover); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp); }

h1 {
  order: 2; margin-top: 2px; text-align: center;
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: clamp(2rem, 9.4vw, 2.875rem); line-height: 0.98;
  letter-spacing: var(--tracking-display); text-transform: uppercase;
}
h1 a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1 mark, h2 mark { background: none; color: var(--brand-primary); }
h1 a:hover mark { color: var(--primary-hover); }

.sub {
  order: 3; text-align: center; text-wrap: pretty;
  font-size: clamp(0.875rem, 3.9vw, 1rem); font-weight: 500; line-height: 1.35;
  color: var(--text-body);
}
.sub b { font-weight: 700; color: var(--text-primary); }

.cel-area { order: 4; flex: 1 1 0; min-height: 170px; min-width: 0; display: flex; justify-content: center; }

.selos { order: 5; flex: none; list-style: none; display: flex; justify-content: center; flex-wrap: nowrap; gap: 5px; }
.selos li {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 5px 9px 5px 7px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-primary); font-size: clamp(10.5px, 3.1vw, 12.5px); font-weight: 700; line-height: 1.1;
}
.selos svg { width: 12px; height: 12px; flex: none; color: var(--brand-primary); }

/* Barra fixa do botão (celular e tablet) */
.rodape-fixo {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 16px max(12px, env(safe-area-inset-bottom));
  background: var(--background); border-top: 1px solid var(--border);
}
.acao { display: flex; align-items: center; gap: 24px; margin: 0 0 4px; }

.cta {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 14px 22px; border-radius: var(--radius-md);
  background: var(--primary-default); color: var(--primary-foreground);
  font-weight: 800; font-size: 1.1875rem; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
  transition: background-color var(--duration-fast) ease-out, transform 100ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.cta:hover { background: var(--primary-hover); }
.cta:active { background: var(--primary-active); transform: translateY(2px); }
.cta svg { width: 26px; height: 26px; flex: none; }

.qr { display: none; align-items: center; gap: 16px; }
.qr-img { width: 132px; height: 132px; padding: 8px; border-radius: var(--radius-lg); background: var(--brand-white); box-shadow: var(--shadow-md); }
.qr-img svg { display: block; width: 100%; height: 100%; }
.qr figcaption { max-width: 20ch; font-size: 0.9375rem; line-height: 1.35; color: var(--text-body); }
.qr b { display: block; font-weight: 800; font-size: 1rem; color: var(--text-primary); }

/* ---------- Celular: conversa do WhatsApp ----------
   As cores abaixo reproduzem a interface do WhatsApp e ficam só neste bloco. */
.cel {
  --wa-header: #008069; --wa-header-ink: #fff;
  --wa-bg: #efeae2; --wa-bubble: #fff; --wa-ink: #111b21; --wa-meta: #667781;
  --wa-price: #0b7a36; --wa-alert: #c8101f;
  flex: 1; min-height: 0; display: flex; width: 100%;
  border-radius: 20px; border: 2px solid var(--border-control);
  box-shadow: var(--shadow-lg);
  text-decoration: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tela {
  position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden; background: var(--wa-bg);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wa-topo { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 6px; background: var(--wa-header); color: var(--wa-header-ink); }
.wa-volta { width: 22px; height: 22px; flex: none; }
.wa-av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: block; object-fit: cover; }
.wa-nome { min-width: 0; flex: 1; line-height: 1.2; }
.wa-nome b { display: block; font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-nome small { display: block; font-size: 12px; font-weight: 400; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-menu { width: 20px; height: 20px; flex: none; fill: currentColor; }

.chat {
  flex: 1; overflow: hidden; padding: 10px 10px 0;
  pointer-events: none; user-select: none; -webkit-user-select: none;
  background-color: var(--wa-bg);
  background-image: radial-gradient(rgba(84, 67, 40, 0.07) 1.2px, transparent 1.6px), radial-gradient(rgba(84, 67, 40, 0.05) 1.2px, transparent 1.6px);
  background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 11px;
}
.msgs { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding-bottom: 12px; will-change: transform; }
.wa-dia { align-self: center; margin: 2px 0 3px; padding: 4px 11px; border-radius: 7px; background: var(--wa-bubble); color: #54656f; font-size: 11.5px; font-weight: 500; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }

.wa {
  position: relative; width: 88%; max-width: 300px; padding: 4px 4px 18px;
  border-radius: 0 8px 8px; background: var(--wa-bubble); color: var(--wa-ink);
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}
.wa::before { content: ""; position: absolute; left: -7px; top: 0; border: 7px solid transparent; border-top-color: var(--wa-bubble); border-right-color: var(--wa-bubble); border-left-width: 0; border-bottom-width: 9px; }
.wa-quem { padding: 2px 5px 3px; font-size: 12.5px; font-weight: 600; color: var(--cyan-600); line-height: 1.2; }
.wa-foto { position: relative; border-radius: 6px; overflow: hidden; background: #f5f5f5; aspect-ratio: 16 / 11; }
.wa-foto img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.wa-txt { padding: 5px 5px 0; font-size: 13.8px; line-height: 1.36; font-weight: 400; }
.wa-txt b { font-weight: 700; }
.wa-txt s { color: var(--wa-meta); }
.wa-txt i { font-style: normal; color: var(--wa-alert); font-weight: 700; }
.wa-preco b { font-size: 16.5px; color: var(--wa-price); }
.wa-hora { position: absolute; right: 8px; bottom: 4px; font-size: 10.5px; color: var(--wa-meta); font-weight: 400; font-variant-numeric: tabular-nums; }
.wa-cta { width: 92%; }
.wa-cta .wa-txt { font-size: 14.5px; }
.wa-botao {
  display: block; margin: 8px 3px 2px; padding: 11px 8px; border-radius: var(--radius-md);
  background: var(--primary-default); color: var(--primary-foreground);
  text-align: center; font: 800 14.5px/1.2 var(--font-body);
}

/* Selo de desconto sobre a foto */
.off {
  position: absolute; left: 0; top: 0; padding: 5px 9px 5px 8px; border-radius: 0 0 var(--radius-md);
  background: var(--brand-primary); color: var(--text-inverse);
  font: 700 15px/1 var(--font-display); font-variant-numeric: tabular-nums;
}
/* Etiqueta dos itens de demonstração */
.exemplo {
  position: absolute; right: 6px; top: 6px; padding: 3px 7px; border-radius: var(--radius-xs);
  background: var(--brand-dark); color: var(--brand-white);
  font: 700 11px/1.2 var(--font-body); letter-spacing: 0.02em;
}

@keyframes entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .cel { animation: entra 600ms var(--ease-out-expo) 120ms backwards; }
}

/* ---------- Prova: o que já saiu no grupo ---------- */
.prova { background: var(--background-deep); border-top: 1px solid var(--border); content-visibility: auto; contain-intrinsic-size: auto 1100px; }
.prova-in { width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 16px 28px; }
.prova h2 {
  text-align: center; text-wrap: balance;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(2rem, 8.4vw, 3rem); line-height: 1; letter-spacing: var(--tracking-display); text-transform: uppercase;
}
.prova-sub { margin: 10px auto 0; max-width: 44ch; text-align: center; text-wrap: balance; color: var(--text-body); font-size: 0.96875rem; line-height: 1.4; }
.prova-exemplo {
  width: fit-content; margin: 14px auto 0; padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--surface-elevated); color: var(--text-primary); font-size: 0.8125rem; font-weight: 700;
}

.pv-lista { list-style: none; margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pv {
  display: flex; flex-direction: column; height: 100%; padding-bottom: 12px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-primary);
  text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform var(--duration-normal) ease-out, border-color var(--duration-normal) ease-out;
}
@media (hover: hover) { .pv:hover { transform: translateY(-2px); border-color: var(--border-control); } }
.pv > * { margin-left: 10px; margin-right: 10px; }
.pv-env {
  margin: 0; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 6px;
  background: var(--surface-elevated); color: var(--text-primary);
  font-size: 0.71875rem; font-weight: 700; line-height: 1.15; text-align: center; white-space: nowrap;
}
.pv-env svg { width: 12px; height: 12px; flex: none; color: var(--brand-primary); }
/* fundo igual ao das fotos de produto da loja */
.pv-foto { position: relative; margin: 0; display: block; background: #f5f5f5; aspect-ratio: 4 / 3; }
.pv-foto img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.pv-tit { margin-top: 10px; font-size: 0.8125rem; line-height: 1.3; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pv-nota { margin-top: 4px; font-size: 0.71875rem; color: var(--text-secondary); }
.pv-de { margin-top: 8px; font-size: 0.75rem; color: var(--text-secondary); }
.pv-por { margin-top: 1px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; line-height: 1.1; }
.pv-por b { font: 700 1.75rem/1.05 var(--font-display); color: var(--discount); font-variant-numeric: tabular-nums; }
.pv-por i { font-style: normal; padding: 3px 6px; border-radius: var(--radius-xs); background: var(--brand-primary); color: var(--text-inverse); font-size: 0.71875rem; font-weight: 700; }
.pv-por em { font-style: normal; font-size: 0.75rem; font-weight: 600; color: var(--text-body); }
.pv-frete { margin-top: 8px; align-self: flex-start; padding: 3px 8px; border-radius: var(--radius-xs); background: var(--surface-elevated); color: var(--text-primary); font-size: 0.71875rem; font-weight: 700; }

.prova-cta { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.prova-cta p { color: var(--text-body); font-size: 1rem; line-height: 1.4; max-width: 36ch; }
.prova-cta b { color: var(--text-primary); font-weight: 700; }
.cta2 { flex: none; width: 100%; max-width: 460px; }

/* ---------- Aviso ---------- */
.pe { background: var(--background-deep); padding: 0 16px calc(var(--rh) + 24px); }
.aviso { margin: 0 auto; padding: 18px 4px 0; max-width: 62ch; text-align: center; border-top: 1px solid var(--border); font-size: 0.8125rem; line-height: 1.5; color: var(--text-secondary); }

/* ---------- Telas muito estreitas ou baixas ---------- */
@media (max-width: 359px) {
  .pg { padding-left: 12px; padding-right: 12px; }
  .pill { font-size: 10.5px; padding: 5px 8px 5px 7px; gap: 5px; }
  .cta { font-size: 1.0625rem; gap: 9px; padding: 14px; }
  .selos { gap: 4px; }
  .selos li { font-size: 10px; gap: 3px; padding: 4px 6px 4px 5px; }
  .selos svg { width: 10px; height: 10px; }
}
@media (max-height: 640px) and (max-width: 1023px) {
  :root { --rh: calc(90px + env(safe-area-inset-bottom)); }
  h1 { font-size: 1.75rem; }
  .logo { width: 150px; }
  .sub { font-size: 0.8125rem; }
  .cta { min-height: 52px; font-size: 1.0625rem; }
}

/* ---------- Tablet ---------- */
@media (min-width: 600px) and (max-width: 1023px) {
  .pg { padding-top: 24px; }
  .logo { width: 250px; }
  .pill { font-size: 12.5px; }
  h1 { font-size: 3.25rem; }
  .sub { font-size: 1.125rem; }
  .rodape-fixo { padding-left: max(16px, calc(50% - 264px)); padding-right: max(16px, calc(50% - 264px)); }
  .cta { min-height: 64px; font-size: 1.3125rem; }
}
@media (min-width: 700px) {
  .pv-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .pv-tit { font-size: 0.875rem; }
  .prova-in { padding: 56px 32px 40px; }
}

/* ---------- Desktop: texto à esquerda, celular à direita ---------- */
@media (min-width: 1024px) {
  .pg {
    max-width: 1200px; height: auto; min-height: 100vh; min-height: 100dvh;
    display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: center; gap: 64px;
    padding: 40px 48px;
  }
  .info { display: flex; flex-direction: column; min-width: 0; }
  .brand { justify-content: flex-start; flex-wrap: wrap; }
  .logo { width: 300px; }
  .pill { font-size: 12.5px; }

  h1 { margin-top: 32px; text-align: left; text-wrap: balance; font-size: clamp(3.5rem, 5.4vw, 5.25rem); line-height: 0.94; }
  .sub { margin-top: 18px; text-align: left; max-width: 46ch; font-size: 1.125rem; line-height: 1.5; }

  .rodape-fixo { display: contents; }
  .acao { order: 4; margin: 26px 0 0; }
  .cta { flex: none; white-space: nowrap; min-height: 70px; padding: 16px 34px; font-size: 1.3125rem; }

  .selos { justify-content: flex-start; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
  .selos li { gap: 6px; padding: 7px 12px 7px 9px; font-size: 0.875rem; }
  .selos svg { width: 15px; height: 15px; }

  /* moldura do aparelho */
  .cel-area { flex: none; min-height: 0; }
  .cel { display: block; flex: none; max-width: 380px; padding: 10px; border-radius: 40px; border: 2px solid var(--border); background: var(--surface-elevated); }
  .tela { height: min(760px, calc(100vh - 100px)); border-radius: 30px; }
  .wa { width: 86%; }

  .pv-lista { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .pv-por b { font-size: 1.5rem; }
  .cta2 { width: auto; }
  .pe { padding-bottom: 28px; }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .qr.ok { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .cta, .pv, .pill { transition: none; }
}
