/* =============================================================================
   site-home.css — as composições da home do site público.

   A home tem 13 seções, cada uma com um papel: a primeira dobra, cinco destaques
   (texto de um lado, ilustração do recurso do outro), automações, o antes e
   depois, segurança, para quem, origem, perguntas e o convite.
   As ilustrações (ys-cena) ficam no site.css, porque as páginas de soluções
   também usam. O site nunca mostra a tela real do sistema.
   ========================================================================== */

body.ys .ys-note { margin: 10px 0 0; font-size: .78rem; color: var(--ys-ink-3); text-align: right; }
body.ys .ys-mt { margin-top: 26px; }

/* ---------- Hero ---------- */
body.ys .ys-hero { position: relative; padding: clamp(20px, 3vw, 40px) 0 clamp(36px, 5vw, 72px); background: linear-gradient(180deg, #fff 0, var(--ys-tint-2) 20%, #fff 78%); }
body.ys .ys-hero-grid { display: grid; gap: 32px; align-items: stretch; }
body.ys .ys-hero-text { align-self: center; padding-block: clamp(16px, 3vw, 40px); }
body.ys .ys-hero-text .ys-h1 { margin-bottom: 22px; }
body.ys .ys-hero-text .ys-lede { margin-bottom: 28px; max-width: 54ch; }
body.ys .ys-hero-nota { margin: 18px 0 0; font-size: .88rem; color: var(--ys-ink-3); }

body.ys .ys-hero-art { position: relative; min-height: 460px; border-radius: var(--ys-r-lg); background: linear-gradient(155deg, var(--ys-navy-3) 0%, var(--ys-navy) 55%, var(--ys-navy-2) 100%); overflow: hidden; isolation: isolate; }
body.ys .ys-hero-art::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 85% 10%, rgba(58,125,211,.5), transparent 65%); }
body.ys .ys-hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

@media (min-width: 1080px) {
  body.ys .ys-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: 56px; min-height: 620px; }
  body.ys .ys-hero-art { min-height: 620px; }

}

/* ---------- Segurança: tabela de células ---------- */
body.ys .ys-ruled { display: grid; border-top: 1px solid var(--ys-line); border-left: 1px solid var(--ys-line); border-radius: var(--ys-r-sm); }
body.ys .ys-ruled-cell { padding: 30px 28px; border-right: 1px solid var(--ys-line); border-bottom: 1px solid var(--ys-line); transition: background .3s; }
body.ys .ys-ruled-cell:hover { background: var(--ys-tint-2); }
body.ys .ys-ruled-cell h3 { font-size: 1.08rem; margin-bottom: 8px; }
body.ys .ys-ruled-cell p { margin: 0; font-size: .95rem; }
@media (min-width: 700px) { body.ys .ys-ruled { grid-template-columns: repeat(2, 1fr); }   }
@media (min-width: 1040px) { body.ys .ys-ruled { grid-template-columns: repeat(3, 1fr); }   }

/* ---------- Comparativo ---------- */
body.ys .ys-cmp { border: 1px solid var(--ys-line); border-radius: var(--ys-r-lg); overflow: hidden; background: #fff; }
body.ys .ys-cmp-head { display: none; }
body.ys .ys-cmp-row { display: grid; gap: 10px; padding: 22px; border-top: 1px solid var(--ys-line); }
body.ys .ys-cmp-row:first-of-type { border-top: 0; }
body.ys .ys-cmp-row strong { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ys-blue); font-weight: 800; }
body.ys .ys-cmp-a { color: var(--ys-ink-2); font-size: .98rem; }
body.ys .ys-cmp-a::before { content: attr(data-label) ': '; font-weight: 700; color: var(--ys-ink-3); }
body.ys .ys-cmp-b { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ys-ink); font-weight: 700; font-size: .98rem; }
body.ys .ys-cmp-b svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ys-blue); color: #fff; }
@media (min-width: 860px) {
  body.ys .ys-cmp-head, body.ys .ys-cmp-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 5fr); gap: 0; padding: 0; }
  body.ys .ys-cmp-head { background: var(--ys-bg-2); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ys-ink-2); border-bottom: 1px solid var(--ys-line); }
  body.ys .ys-cmp-head span { padding: 16px 28px; }
  body.ys .ys-cmp-head span:last-child { background: var(--ys-blue); color: #fff; }
  body.ys .ys-cmp-row:first-of-type { border-top: 1px solid var(--ys-line); }
  body.ys .ys-cmp-head + .ys-cmp-row { border-top: 0; }
  body.ys .ys-cmp-row > * { padding: 20px 28px; }
  body.ys .ys-cmp-row strong { align-self: center; }
  body.ys .ys-cmp-a::before { content: none; }
  body.ys .ys-cmp-b { background: var(--ys-tint-2); }

}

/* ---------- Para quem ---------- */
body.ys .ys-quem { display: grid; gap: 40px; }
body.ys .ys-quem .ys-h2 { margin-bottom: 18px; }
body.ys .ys-quem .ys-lede { margin-bottom: 26px; }
body.ys .ys-quem-list { list-style: none; border-top: 1px solid var(--ys-line-2); display: grid; }
body.ys .ys-quem-list li { padding: 15px 0; border-bottom: 1px solid var(--ys-line-2); font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ys-navy); transition: color .2s, padding-left .3s var(--ys-ease); }
body.ys .ys-quem-list li:hover { color: var(--ys-blue); padding-left: 8px; }
@media (min-width: 1000px) {
  body.ys .ys-quem { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 88px; align-items: start; }
  body.ys .ys-quem-list { grid-template-columns: 1fr 1fr; column-gap: 40px; }

}

/* ---------- Origem ---------- */
body.ys .ys-origem { position: relative; padding-block: var(--ys-sec); overflow: hidden; } /* o fundo esfumaçado vem do site.css */
body.ys .ys-origem-top { display: grid; gap: 24px; }
body.ys .ys-origem-manifesto { font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.7; color: var(--ys-ink-2); margin: 0; }
body.ys .ys-origem-manifesto strong { color: var(--ys-ink); font-weight: 700; }
body.ys .ys-origem-word { font-size: clamp(5.6rem, 25vw, 23rem); font-weight: 800; letter-spacing: -0.04em; line-height: .86; margin: clamp(36px, 5vw, 72px) 0 12px; text-align: center; color: transparent; background: linear-gradient(180deg, var(--ys-navy) 10%, rgba(39,100,180,.18) 96%); -webkit-background-clip: text; background-clip: text; user-select: none; }
body.ys .ys-origem-sub { text-align: center; margin: 0 0 clamp(40px, 5vw, 72px); font-size: .86rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ys-blue); }
body.ys .ys-etimo { display: grid; border-top: 1px solid var(--ys-line-2); }
body.ys .ys-etimo > div { padding: 28px 0; border-bottom: 1px solid var(--ys-line-2); }
body.ys .ys-etimo-tag { font-size: .9rem; font-weight: 600; color: var(--ys-ink-2); }
body.ys .ys-etimo-word { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ys-navy); line-height: 1.1; margin: 10px 0 12px; }
body.ys .ys-etimo p { margin: 0; }
body.ys .ys-etimo strong { color: var(--ys-ink); }
body.ys .ys-pontas { margin-top: clamp(44px, 6vw, 80px); }
body.ys .ys-pontas-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 40px; margin-bottom: 28px; }
body.ys .ys-pontas h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.025em; }
body.ys .ys-pontas-grid { display: grid; gap: 14px; }
body.ys .ys-pontas-grid > div { padding: 24px; border-radius: var(--ys-r); background: #fff; border: 1px solid var(--ys-line); }
body.ys .ys-pontas-grid h4 { font-size: 1.1rem; margin-bottom: 6px; }
body.ys .ys-pontas-grid p { margin: 0; font-size: .96rem; }
body.ys .ys-eq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 700; color: var(--ys-ink-2); }
body.ys .ys-eq i { font-style: normal; color: var(--ys-blue); }
body.ys .ys-eq b { color: var(--ys-navy); font-weight: 800; }
@media (min-width: 900px) {
  body.ys .ys-origem-top { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: end; }
  body.ys .ys-etimo { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ys-line-2); }
  body.ys .ys-etimo > div { padding: 32px 32px 36px 0; border-bottom: 0; }
  body.ys .ys-etimo > div + div { padding-left: 32px; border-left: 1px solid var(--ys-line-2); }
  body.ys .ys-pontas-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

}

/* ---------- FAQ ---------- */
body.ys .ys-faqgrid { display: grid; gap: 32px; }
body.ys .ys-faqgrid-side .ys-h2 { margin-bottom: 26px; }
@media (min-width: 1000px) {
  body.ys .ys-faqgrid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
  body.ys .ys-faqgrid-side { position: sticky; top: calc(var(--ys-header-h) + 32px); align-self: start; }

}

/* ---------- CTA final ---------- */
body.ys .ys-final { position: relative; background: linear-gradient(180deg, #fff 0%, var(--ys-tint) 58%, var(--ys-bg-2) 100%); padding-top: clamp(64px, 8vw, 112px); overflow: hidden; isolation: isolate; }
body.ys .ys-final-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; -webkit-mask-image: linear-gradient(#000 45%, transparent 92%); mask-image: linear-gradient(#000 45%, transparent 92%); }
body.ys .ys-final-grid { display: grid; gap: 40px; }
body.ys .ys-final-title { font-size: clamp(2rem, 3.8vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.06; margin-bottom: 20px; }
body.ys .ys-final-show { align-self: end; min-width: 0; margin-bottom: -2px; }
@media (min-width: 1000px) {
  body.ys .ys-final-grid > div:first-child { padding-bottom: clamp(64px, 8vw, 112px); }

}
@media (max-width: 999px) { body.ys .ys-final-grid { padding-bottom: 0; }   }

/* ---------- Mobile: o hero é recomposto, não encolhido ---------- */
@media (max-width: 1079px) {
  body.ys .ys-hero-art { min-height: 0; padding: 74px 16px 72px; }

}
@media (max-width: 640px) {
  body.ys .ys-hero-art { padding: 16px 12px; display: grid; gap: 10px; }
  body.ys .ys-hero-text .ys-btn { width: 100%; }

}

/* ---------- Foto do hero (quando assets/site/img/hero.webp existir) ----------
   A foto vira o fundo do painel e já termina em azul-escuro (#05152C): o painel
   usa a mesma cor, então não há emenda. */
body.ys .ys-hero-art.has-photo { background: #05152C; }
body.ys .ys-hero-art.has-photo::after { display: none; }
body.ys .ys-hero-art.has-photo .ys-hero-lines { display: none; }
body.ys .ys-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; z-index: -1; }
@media (min-width: 1080px) {
  body.ys .ys-hero-art.has-photo { min-height: 680px; }

}
/* Tablet e celular: a foto fica em cima, por inteiro no rosto, e dissolve no azul. */
@media (max-width: 1079px) {
  body.ys .ys-hero-art.has-photo { padding-top: min(380px, 62vw); }
  body.ys .ys-hero-photo { height: min(520px, 92vw); -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }

}
@media (max-width: 640px) {
  body.ys .ys-hero-art.has-photo { padding-top: 76vw; }
  body.ys .ys-hero-photo { height: 104vw; }

}

/* ---------- Destaque: texto de um lado, ilustração do recurso do outro ---------- */
body.ys .ys-spot { display: grid; gap: 36px; align-items: center; }
body.ys .ys-spot > * { min-width: 0; }
body.ys .ys-spot .ys-h2 { margin-bottom: 18px; }
body.ys .ys-spot .ys-lede { margin-bottom: 24px; }
@media (min-width: 1000px) {
  body.ys .ys-spot { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 96px); }
  body.ys .ys-spot.is-flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  body.ys .ys-spot.is-flip .ys-spot-text { order: 2; }
}

/* ---------- Automações e integrações ---------- */
body.ys .ys-liga { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
body.ys .ys-liga li { padding: 18px 20px; background: #fff; border: 1px solid var(--ys-line); border-radius: var(--ys-r-sm); transition: border-color .25s, background .25s; }
body.ys .ys-liga li:hover { border-color: var(--ys-blue-3); background: var(--ys-tint-2); }
body.ys .ys-liga strong { display: block; font-size: 1rem; color: var(--ys-ink); }
body.ys .ys-liga span { display: block; margin-top: 2px; font-size: .88rem; color: var(--ys-ink-2); }
body.ys .ys-liga li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 520px) { body.ys .ys-liga { grid-template-columns: 1fr; } }

/* Convite final: só o texto, no centro. */
body.ys .ys-final-grid { justify-items: center; text-align: center; padding-bottom: clamp(64px, 8vw, 112px); }
body.ys .ys-final-grid .ys-final-title { max-width: 20ch; margin-inline: auto; }
body.ys .ys-final-grid .ys-lede { margin-inline: auto; }
body.ys .ys-final-grid .ys-cta-row { justify-content: center; }

/* ---------- Etiquetas da primeira dobra e cartões que abrem pop-up (15/11/2026) ---------- */
/* As quatro etiquetas formam um bloco: uma linha fina as separa do convite e elas ficam em
   grade, 2 por 2 ou 4 numa fileira. Nunca três em cima e uma sobrando embaixo. */
body.ys .ys-hero-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 420px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ys-line); }
body.ys .ys-hero-tags .ys-tag { width: 100%; }
@media (min-width: 1360px) { body.ys .ys-hero-tags { grid-template-columns: repeat(4, auto); justify-content: start; max-width: none; } }
@media (max-width: 1079px) { body.ys .ys-hero-tags { max-width: none; } }
/* Cartões separados (integrações, três fundamentos): sobem 2 px, como no sistema. */
body.ys .ys-liga li.is-pop:hover, body.ys .ys-pontas-grid > .is-pop:hover { translate: 0 -2px; border-color: var(--ys-blue-3); box-shadow: var(--ys-shadow-sm); }
body.ys .ys-pontas-grid > .is-pop:hover { background: var(--ys-tint-2); }

/* ---------- YURIS que nasce do logo (15/11/2026) ----------
   O site.js monta a cena dentro da palavra: .ys-origem-cam é a câmera (inclina com o ponteiro),
   .ys-origem-y0 é o lugar do Y, que guarda a letra Y e, por cima dela, a estrela do logo
   (.ys-origem-estrela). A estrela é a arte real, repetida em oito camadas: cada peça é a mesma
   imagem com um recorte (três arcos, três lâminas, o medalhão) e a última é a arte inteira, que
   cobre as emendas. Os recortes saíram da medição da arte de 1080 px, com o centro do medalhão
   em 49,81% e 51,67%. Parada, a estrela não aparece: a palavra é YURIS em letras. A estrela só
   existe durante a cena (site-motion.css).
   As letras levam duas camadas de fundo, recortadas pelo texto: o degradê de sempre e, por cima,
   o brilho nas cores do logo (azul e prata). --b é a posição do brilho ao longo da palavra;
   --x e --w (postos pelo site.js) fazem o brilho atravessar a palavra inteira, e não recomeçar
   em cada letra. Com --b em -20% o brilho fica fora da palavra. */
body.ys .ys-origem-word.is-logo { background: none; perspective: 1400px; perspective-origin: 50% 46%; }
body.ys .ys-origem-cam { position: relative; display: inline-block; transform-style: preserve-3d; }
body.ys .ys-origem-y0 { position: relative; display: inline-block; }
body.ys .ys-origem-estrela { position: absolute; left: 50%; top: 50%; width: 1em; height: 1em; margin: -.5em 0 0 -.5em; opacity: 0; pointer-events: none; }
body.ys .ys-e { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; transform-origin: 49.81% 51.67%; visibility: hidden; }
body.ys .ys-e-tudo { visibility: visible; }
body.ys .ys-e-lam-dir { clip-path: polygon(49.81% 28.52%, 67.41% 21.20%, 93.14% -3.79%, 112.52% 19.72%, 81.86% 36.04%, 74.89% 63.63%, 61.18% 57.09%, 62.10% 54.43%, 62.41% 51.63%, 62.08% 48.83%, 61.15% 46.18%, 59.65% 43.80%, 57.65% 41.81%, 55.27% 40.32%, 52.61% 39.39%, 49.81% 39.07%); }
body.ys .ys-e-lam-esq { clip-path: polygon(49.81% 28.52%, 32.22% 21.20%, 6.49% -3.79%, -12.89% 19.72%, 17.77% 36.04%, 24.74% 63.63%, 38.45% 57.09%, 37.53% 54.43%, 37.22% 51.63%, 37.54% 48.83%, 38.48% 46.18%, 39.98% 43.80%, 41.98% 41.81%, 44.36% 40.32%, 47.02% 39.39%, 49.81% 39.07%); }
body.ys .ys-e-lam-baixo { clip-path: polygon(74.89% 63.63%, 63.24% 74.92%, 59.06% 77.07%, 70.39% 118.96%, 29.24% 118.96%, 40.57% 77.07%, 36.39% 74.92%, 24.74% 63.63%, 38.45% 57.09%, 39.95% 59.49%, 41.94% 61.49%, 44.33% 63.00%, 47.00% 63.94%, 49.81% 64.26%, 52.63% 63.94%, 55.30% 63.00%, 57.69% 61.49%, 59.68% 59.49%, 61.18% 57.09%); }
body.ys .ys-e-arco-topo { clip-path: polygon(28.86% 22.83%, 8.45% -5.26%, 91.18% -5.26%, 70.77% 22.83%); }
body.ys .ys-e-arco-dir { clip-path: polygon(82.69% 35.63%, 113.06% 20.82%, 72.73% 118.20%, 58.41% 76.62%, 60.59% 75.86%, 65.92% 73.84%, 71.01% 70.75%, 75.72% 66.62%, 79.76% 61.39%, 82.60% 55.11%, 84.25% 48.05%, 84.16% 40.51%); }
body.ys .ys-e-arco-esq { clip-path: polygon(16.94% 35.63%, -13.43% 20.82%, 26.90% 118.20%, 41.22% 76.62%, 39.04% 75.86%, 33.71% 73.84%, 28.62% 70.75%, 23.91% 66.62%, 19.87% 61.39%, 17.03% 55.11%, 15.37% 48.05%, 15.47% 40.51%); }
body.ys .ys-e-medalhao { clip-path: circle(13.15% at 49.81% 51.67%); }
body.ys .ys-origem-l { display: inline-block; color: transparent; background-image: linear-gradient(100deg, rgba(39,100,180,0) calc(var(--b, -20%) - 15%), #2c6ccf calc(var(--b, -20%) - 8%), #a6c4f1 calc(var(--b, -20%) - 3%), #f5f7fb var(--b, -20%), #b4bcc9 calc(var(--b, -20%) + 3.5%), rgba(180,188,201,0) calc(var(--b, -20%) + 12%)), linear-gradient(180deg, var(--ys-navy) 10%, rgba(39,100,180,.18) 96%); background-size: var(--w, 100%) 100%, 100% 100%; background-position: calc(-1 * var(--x, 0px)) 0, 0 0; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; }
