/* ==========================================================================
   Viralize Farm: componentes proprios em cima da base do /teste.
   Mockups de Instagram (celular, post, perfil, story, direct) e o card
   estilo portal de noticias. Tudo HTML/CSS, sem imagem de interface.
   ========================================================================== */

:root {
  --vf-mag: #e0356b;
  --vf-gold: #f5a623;
  --vf-purple: #6b2fa0;
  --ig-ring: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7);
  --ig-text: #0f0f14;
  --ig-muted: #737380;
  --ig-line: #ececf0;
}

.brand img { height: 40px; width: auto; }
.hero-badge img { width: min(300px, 70vw); height: auto; filter: drop-shadow(0 18px 30px rgba(107,47,160,.25)); }
.footer .brand img { height: 46px; }

/* ---------- celular ---------- */
.ig-phone {
  position: relative; width: 300px; aspect-ratio: 9 / 19.2; margin: 0 auto;
  border-radius: 46px; background: #111; padding: 11px;
  box-shadow: 0 40px 80px rgba(40,10,60,.28), 0 10px 24px rgba(40,10,60,.14), inset 0 0 0 2px #2a2a30;
}
.ig-phone::before { /* ilha dinamica */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 24px; border-radius: 20px; background: #000; z-index: 5;
}
.ig-screen {
  position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: #fff; color: var(--ig-text); font-family: "Inter", system-ui, sans-serif;
  display: flex; flex-direction: column;
}
.ig-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px 4px; font-size: 12px; font-weight: 600; }
.ig-status .sig { display: flex; gap: 4px; align-items: center; }
.ig-status .sig i { display: block; width: 3px; background: var(--ig-text); border-radius: 1px; }
.ig-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px 8px; }
.ig-word { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 25px; font-weight: 400; letter-spacing: .2px; }
.ig-top .ic { display: flex; gap: 14px; }
.ig-top svg, .ig-actions svg, .ig-nav svg { width: 22px; height: 22px; }
.ig-stories { display: flex; gap: 10px; padding: 2px 12px 10px; border-bottom: 1px solid var(--ig-line); overflow: hidden; }
.ig-story { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; color: var(--ig-text); width: 52px; flex: 0 0 52px; }
.ig-story .ring { width: 50px; height: 50px; border-radius: 50%; padding: 2px; background: var(--ig-ring); }
.ig-story .ring img, .ig-story .ring span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.ig-story span.av { display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 13px; }

.ig-feed { flex: 1; overflow: hidden; position: relative; }
.ig-post { background: #fff; }
.ig-post-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 12px; font-weight: 700; }
.ig-post-h .av { width: 28px; height: 28px; border-radius: 50%; padding: 1.5px; background: var(--ig-ring); }
.ig-post-h .av span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 1.5px solid #fff; color: #fff; font-size: 9px; font-weight: 800; }
.ig-post-h .dots { margin-left: auto; font-weight: 900; letter-spacing: 1px; }
.ig-actions { display: flex; align-items: center; gap: 12px; padding: 8px 10px 4px; }
.ig-actions .save { margin-left: auto; }
.ig-likes { padding: 0 10px; font-size: 11.5px; font-weight: 700; }
.ig-cap { padding: 2px 10px 8px; font-size: 11.5px; line-height: 1.35; }
.ig-cap b { font-weight: 700; margin-right: 4px; }
.ig-cap .tag { color: #1f4fbf; }
.ig-nav { display: flex; justify-content: space-around; align-items: center; padding: 9px 6px 16px; border-top: 1px solid var(--ig-line); background: #fff; }
.ig-nav .me { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); }

/* carrossel de posts dentro do celular */
.ig-rotator { position: relative; }
.ig-rotator .ig-post { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.ig-rotator .ig-post.on { position: relative; opacity: 1; transform: none; }

/* ---------- card estilo portal de noticias ---------- */
.vf-card { background: #fff; color: #111; font-family: "DM Sans", "Inter", system-ui, sans-serif; aspect-ratio: 4 / 5; display: flex; flex-direction: column; overflow: hidden; }
.vf-card-h { display: flex; gap: 8px; padding: 9px 10px 7px; align-items: flex-start; }
.vf-logo { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 11px; letter-spacing: -.3px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); line-height: .95; text-align: center; }
.vf-logo.l1 { background: #111; color: #ffd23f; }
.vf-logo.l2 { background: linear-gradient(135deg, #e0356b, #6b2fa0); }
.vf-logo.l3 { background: linear-gradient(135deg, #f5a623, #e0356b); }
.vf-card-t { min-width: 0; }
.vf-name { display: flex; align-items: center; gap: 3px; font-weight: 900; font-size: 11.5px; line-height: 1.1; }
.vf-name small { font-weight: 500; color: #6b6b75; font-size: 10px; margin-left: 2px; }
.vf-name .ck { width: 11px; height: 11px; flex: 0 0 11px; }
.vf-head { font-weight: 700; font-size: 11.6px; line-height: 1.22; margin-top: 3px; letter-spacing: -.1px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.vf-head .sir { display: inline-block; width: 11px; height: 11px; vertical-align: -1px; margin-right: 3px; }
.vf-photos { flex: 1; display: grid; gap: 3px; padding: 0 6px 6px; min-height: 0; }
.vf-photos.two { grid-template-columns: 1fr 1fr; }
.vf-photos.shop { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.vf-photos.shop .vid { grid-column: 2; grid-row: 1 / span 2; }
.vf-photos img, .vf-photos .vid { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; display: block; min-height: 0; }
.vf-photos .ph { position: relative; min-height: 0; }
.vf-photos .ph img { position: absolute; inset: 0; }
.vf-photos .vid { position: relative; overflow: hidden; background: #000; }
.vf-photos .vid img { position: absolute; inset: 0; animation: vfKen 9s ease-in-out infinite alternate; }
.vf-photos .vid .play { position: absolute; left: 6px; bottom: 7px; right: 6px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.vf-photos .vid .play::after { content: ""; position: absolute; inset: 0; width: 0; background: #fff; animation: vfProg 6s linear infinite; }
@keyframes vfKen { from { transform: scale(1.02); } to { transform: scale(1.12) translateY(-3%); } }
@keyframes vfProg { to { width: 100%; } }
.vf-price { position: absolute; left: 5px; top: 5px; background: #fff; border-radius: 6px; padding: 3px 6px; font-weight: 900; font-size: 11px; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.vf-price s { color: #888; font-weight: 500; font-size: 9px; margin-right: 3px; }
.vf-price em { font-style: normal; color: #fff; background: var(--vf-mag); border-radius: 4px; padding: 0 4px; margin-left: 3px; font-size: 9.5px; }
.vf-num { position: absolute; right: 5px; bottom: 5px; background: rgba(17,17,17,.82); color: #fff; font-weight: 800; font-size: 9.5px; padding: 2px 6px; border-radius: 5px; }
.vf-quero { margin: 0 6px 6px; border-radius: 6px; background: var(--grad); color: #fff; text-align: center; font-weight: 900; font-size: 10.5px; letter-spacing: .3px; padding: 5px 4px; }

/* card grande (fora do celular) */
.vf-card.big .vf-card-h { padding: 14px 14px 10px; gap: 11px; }
.vf-card.big .vf-logo { flex-basis: 46px; width: 46px; height: 46px; font-size: 14px; }
.vf-card.big .vf-name { font-size: 15px; }
.vf-card.big .vf-name small { font-size: 12.5px; }
.vf-card.big .vf-name .ck { width: 14px; height: 14px; flex-basis: 14px; }
.vf-card.big .vf-head { font-size: 15.5px; }
.vf-card.big .vf-head .sir { width: 14px; height: 14px; }
.vf-card.big .vf-photos { padding: 0 9px 9px; gap: 5px; }
.vf-card.big .vf-price { font-size: 14px; } .vf-card.big .vf-num { font-size: 12px; }
.vf-card.big .vf-quero { font-size: 13px; padding: 8px; margin: 0 9px 9px; }

/* ---------- leque de posts ---------- */
/* overflow:hidden aqui e a causa raiz do scroll horizontal em telas estreitas:
   os cards f1/f3 usam left:50% + translateX em % + rotate, e em viewports
   pequenos (ex: 390px) isso empurra a caixa dos cards pra ALEM da largura do
   proprio leque, alargando o body inteiro. O leque ja e o container visual
   dessa peca (cards se sobrepondo, so uma fatia de cada lado aparece por
   design), entao conter o vazamento aqui e correto, nao so cosmetico.
   IMPORTANTE: como f1/f3 ficam deslocados 28-36px pra baixo (top:48px/36px)
   e sao mais altos que o f2 central, a altura do .vf-fan tem que cobrir a
   base REAL deles (medido com Playwright: 601px acima de 901px, 522px entre
   561-900px, 500px ate 560px), senao o overflow:hidden corta o texto de
   visualizacoes/comentarios dos 2 cards laterais. Os valores abaixo (e nos
   media queries) tem ~10px de folga sobre o medido. */
.vf-fan { position: relative; height: 610px; max-width: 760px; margin: 34px auto 0; overflow: hidden; }
.vf-fan .fan-item { position: absolute; top: 20px; width: 300px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.vf-fan .fan-item .ig-post-h { padding: 10px 12px; }
.vf-fan .f1 { left: 50%; transform: translateX(-118%) rotate(-9deg); top: 48px; }
.vf-fan .f2 { left: 50%; transform: translateX(-50%); z-index: 2; top: 0; }
.vf-fan .f3 { left: 50%; transform: translateX(18%) rotate(9deg); top: 48px; }
.vf-fan:hover .f1 { transform: translateX(-128%) rotate(-12deg); }
.vf-fan:hover .f3 { transform: translateX(28%) rotate(12deg); }
.vf-fan .fan-meta { padding: 6px 12px 12px; font-size: 12.5px; color: var(--ink-2); }
.vf-fan .fan-meta b { color: var(--ink); }
.vf-fan .fan-meta .v { font-weight: 700; color: var(--ink); }

/* ---------- perfil (grade 3x3) ---------- */
.ig-profile { padding: 4px 12px 0; }
.ig-profile .row1 { display: flex; align-items: center; gap: 14px; }
.ig-profile .pic { width: 62px; height: 62px; border-radius: 50%; padding: 2px; background: var(--ig-ring); flex: 0 0 62px; }
.ig-profile .pic span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; background: #111; color: #ffd23f; font-weight: 900; font-size: 15px; }
.ig-profile .nums { display: flex; flex: 1; justify-content: space-around; text-align: center; font-size: 10px; color: var(--ig-muted); }
.ig-profile .nums b { display: block; font-size: 13.5px; color: var(--ig-text); }
.ig-profile .bio { font-size: 10.5px; margin: 7px 0 8px; line-height: 1.35; }
.ig-profile .bio b { font-size: 11.5px; display: inline-flex; align-items: center; gap: 3px; }
.ig-profile .bio a { color: #1f4fbf; font-weight: 600; }
.ig-profile .btns { display: flex; gap: 5px; margin-bottom: 8px; }
.ig-profile .btns span { flex: 1; background: #efeff2; border-radius: 8px; text-align: center; font-weight: 700; font-size: 10.5px; padding: 6px 0; }
.ig-profile .btns span.p { background: #0095f6; color: #fff; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig-grid .g { aspect-ratio: 4 / 5; overflow: hidden; position: relative; background: #eee; }
.ig-grid .g .vf-card { transform: scale(.34); transform-origin: top left; width: 294%; }
.ig-grid .g.new { animation: vfPop .6s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes vfPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- story + direct ---------- */
.ig-dm { position: absolute; right: -34px; bottom: 90px; width: 250px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 12px; font-size: 12.5px; z-index: 6; }
.ig-dm .dm-h { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.ig-dm .dm-h .av { width: 28px; height: 28px; border-radius: 50%; background: #111; color: #ffd23f; display: grid; place-items: center; font-size: 9px; font-weight: 900; }
.ig-dm .dm-h small { display: block; font-weight: 500; color: var(--ig-muted); font-size: 10.5px; }
.ig-dm .b { background: #efeff2; border-radius: 16px; padding: 8px 11px; margin-top: 6px; line-height: 1.35; }
.ig-dm .b.me { background: #3797f0; color: #fff; margin-left: 30px; }
.ig-dm .lnk { display: block; margin-top: 6px; border-radius: 12px; overflow: hidden; border: 1px solid var(--ig-line); }
.ig-dm .lnk img { width: 100%; height: 90px; object-fit: cover; display: block; }
.ig-dm .lnk span { display: block; padding: 6px 9px; font-size: 11px; font-weight: 700; }
.ig-comment { position: absolute; left: -40px; top: 120px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 9px 12px; font-size: 12.5px; z-index: 6; display: flex; gap: 8px; align-items: center; }
.ig-comment .av { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg,#f5a623,#e0356b); }
.ig-comment b { margin-right: 4px; }

/* ---------- composicao do CTA final ---------- */
.vf-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; margin-top: 40px; min-height: 560px; }
.vf-stage .ig-phone { width: 270px; z-index: 2; }
.vf-stage .side { position: absolute; top: 60px; width: 250px; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.vf-stage .side.l { left: calc(50% - 390px); transform: rotate(-7deg); }
.vf-stage .side.r { right: calc(50% - 390px); transform: rotate(7deg); }

/* ---------- miniaturas usadas nas secoes da base ---------- */
.oneapp-hub img, .m-hub img { border-radius: 22%; }
.oneapp-traveler img, .m-traveler img { border-radius: 8px; object-fit: cover; }
.tp-card .tp-seal { max-width: 420px; }
.vf-sectag { display: inline-flex; align-items: center; gap: 6px; }

/* rotulos do slider do juiz */
.ba-tag-before { background: #fdecf0; color: #c21c46; }

/* planos */
.billing-toggle .bt-opt { white-space: nowrap; }
.plan .p-sub strong { color: var(--ink); }

@media (max-width: 900px) {
  .vf-fan { height: 530px; }
  .vf-fan .fan-item { width: 240px; }
  .vf-stage { min-height: 500px; }
  .vf-stage .side { display: none; }
  .ig-dm { right: -6px; width: 220px; bottom: 70px; }
  .ig-comment { left: -6px; }
}
@media (max-width: 560px) {
  .ig-phone { width: 270px; }
  .vf-fan { height: 510px; }
  .vf-fan .fan-item { width: 210px; }
  .vf-fan .f1 { transform: translateX(-105%) rotate(-8deg); }
  .vf-fan .f3 { transform: translateX(5%) rotate(8deg); }
  .ig-dm { width: 200px; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .vf-photos .vid img, .vf-photos .vid .play::after, .ig-grid .g.new { animation: none; }
  .ig-rotator .ig-post { transition: none; }
}

/* ---------- paginas internas (legal, ajuda, contato, faq, 404) ---------- */
.doc-main { padding: 120px 0 40px; }
.doc-hero { text-align: center; padding: 30px 0 26px; }
.doc-hero h1 { font-family: "Sora", sans-serif; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 10px 0 12px; }
.doc-hero .updated { color: var(--muted-2); max-width: 640px; margin: 0 auto; }
.doc-hero .updated a, .doc-body a:not(.btn) { color: var(--vf-mag); font-weight: 600; text-decoration: none; }
.doc-hero .updated a:hover, .doc-body a:not(.btn):hover { opacity: .85; }
.doc-body { max-width: 780px; margin: 0 auto; padding: 0 20px 40px; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.doc-body h2 { font-family: "Sora", sans-serif; color: var(--ink); font-size: 22px; line-height: 1.25; margin: 38px 0 10px; }
.doc-body h3 { font-family: "Sora", sans-serif; color: var(--ink); font-size: 18px; margin: 24px 0 8px; }
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body li { margin: 6px 0; }
.doc-toc, .doc-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; box-shadow: var(--shadow-sm); }
.doc-toc h4 { font-family: "Sora", sans-serif; margin: 0 0 8px; color: var(--ink); }
.doc-toc ol, .doc-toc ul { margin: 0; columns: 2; column-gap: 28px; }
.doc-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.doc-table th, .doc-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table th { background: var(--card-soft); color: var(--ink); font-family: "Sora", sans-serif; font-size: 14px; }
/* tabela com table-layout:auto (padrao) IGNORA width:100% quando o
   conteudo das celulas nao cabe: o navegador alarga a tabela pro
   min-content, empurrando a pagina inteira pra fora em telas estreitas
   (achado real em cookies.html/privacidade.html: scrollWidth > clientWidth
   ate em 320-340px). Envolver em .table-scroll com overflow-x:auto deixa a
   tabela com scroll horizontal PROPRIO (sem perder nenhuma coluna nem
   espremer o texto, so um scroll dentro da tabela), em vez de vazar pra
   pagina. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* minmax(0,1fr) (mesma causa raiz do .feat-grid/.footer-grid): sem isso o
   card de contato/ajuda nao encolhe e o grid de 3/2 colunas fica mais largo
   que a pagina em telas estreitas antes do breakpoint de 1 coluna. */
.contato-grid, .ajuda-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ajuda-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contato-card, .ajuda-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.contato-card h3, .ajuda-card h3 { margin: 6px 0 0; }
.contato-card p, .ajuda-card p { margin: 0 0 8px; font-size: 15px; }
/* .btn tem white-space:nowrap (styles.css) pra rotulo curto normal, mas o
   card de contato usa o e-mail inteiro como rotulo do botao
   ("suporte@viralizefarm.com.br", sem espaco pra quebrar) -- em telas bem
   estreitas isso forcava o card, o grid e a pagina inteira mais largos que
   a viewport (achado real: contato.html em 320px). Aqui, e so aqui, deixa o
   botao quebrar linha. */
.contato-card .btn, .ajuda-card .btn { white-space: normal; overflow-wrap: anywhere; text-align: center; max-width: 100%; }
.c-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--vf-mag); }
.c-ic svg { width: 24px; height: 24px; }
.doc-page .faq { max-width: 860px; margin: 0 auto; }
@media (max-width: 900px) {
  .doc-main { padding-top: 96px; }
  /* minmax(0,1fr) tambem aqui: mesmo com 1 coluna so, sem isso o card
     (min-content do padding+conteudo, ex: 304px) forca a coluna e a pagina
     inteira mais larga que a viewport (achado real: contato.html em 320px,
     scrollWidth 324 contra clientWidth 320). */
  .contato-grid, .ajuda-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-toc ol, .doc-toc ul { columns: 1; }
}

/* ilustracoes 3D com fundo proprio: fundem no off-white */
.feat-mascot-img, .faq-mascot-img { filter: none; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent 100%); mask-image: radial-gradient(closest-side, #000 80%, transparent 100%); }
.feat-ic-photo img { mix-blend-mode: multiply; }

/* ajustes 27/09 */
.nav .brand img { height: 54px !important; width: auto !important; max-width: none !important; }
.footer .brand img { height: 64px !important; width: auto !important; max-width: none !important; }
.ig-rotator .ig-post { display: none; position: relative; opacity: 1; transform: none; transition: none; }
.ig-rotator .ig-post.on { display: block; animation: vfFeedIn .55s ease both; }
@keyframes vfFeedIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.vf-stage .side .vf-card-h { padding: 10px 11px 8px; }

/* recursos agora sem fundo (PNG transparente do Felipe): sem mascara, sem sombra */
.feat-mascot-img { mix-blend-mode: normal !important; -webkit-mask-image: none !important; mask-image: none !important; filter: none !important; }

/* faq agora tambem sem fundo (PNG transparente): sem mascara/multiply, mesmo tratamento do recursos */
.faq-mascot-img { mix-blend-mode: normal !important; -webkit-mask-image: none !important; mask-image: none !important; filter: none !important; }
/* Felipe (27/09): nada sublinhado no site (links se destacam pela cor e peso) e foco de teclado sempre visivel. */
a, a:hover, a:focus, a:visited { text-decoration: none; }
:focus-visible { outline: 2px solid var(--vf-mag); outline-offset: 3px; }
