/* ---------- Layout dividido (texto + simulação) ---------- */
.split { flex-direction: row; align-items: center; justify-content: space-between; gap: clamp(20px, 3.4vw, 56px); text-align: left; }
.split > .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 24px); }
.split > .demo-col { flex: 1.12 1 0; }
.g2 { grid-template-columns: repeat(2, 1fr); max-width: none; }
.split h2 { max-width: 16ch; }
.split .tile { padding: clamp(14px, 1.5vw, 22px); gap: 8px; }
.split .tile p { font-size: 14px; }

/* ---------- Janela de computador ---------- */
.demo { padding: 12px; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.dwin {
  position: relative; overflow: hidden; border-radius: 14px;
  background: #0e0806; border: 1px solid rgba(255, 170, 100, .22);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  height: clamp(300px, 46vh, 430px); display: flex; flex-direction: column;
}
.dbar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 11px; color: var(--muted); }
.dbar .d { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.dbar .d:nth-child(2) { background: #febc2e; }
.dbar .d:nth-child(3) { background: #28c840; }
.dlabel { margin-left: 8px; letter-spacing: .02em; }
.dbody { flex: 1; display: flex; min-height: 0; }

.dnav { width: 46px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; border-right: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .02); }
.dnav i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); transition: background .35s, color .35s; }
.dnav i svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dnav i.on { background: rgba(255, 122, 26, .2); color: var(--orange); }

.dviews { position: relative; flex: 1; min-width: 0; }
.dview { position: absolute; inset: 0; padding: 14px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease); display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.dview.on { opacity: 1; transform: none; }
.dview h4 { margin: 0; font: 700 12px Sora, sans-serif; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.dview h4 b { color: var(--orange); font-size: 15px; }

/* Cena 1: leads */
.dleads-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0; }
.dpanel { border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; padding: 10px; background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: hidden; }
.dchat { display: flex; flex-direction: column; gap: 7px; }
.dm { max-width: 90%; padding: 7px 10px; border-radius: 12px; font-size: 11.5px; line-height: 1.35; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .35s, transform .35s; }
.dm.show { opacity: 1; transform: none; }
.dm.in { align-self: flex-start; background: rgba(255, 255, 255, .1); border-bottom-left-radius: 3px; }
.dm.out { align-self: flex-end; background: linear-gradient(135deg, rgba(255, 150, 60, .95), rgba(255, 90, 0, .95)); color: #1a0a02; font-weight: 500; border-bottom-right-radius: 3px; }
.drow { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 9px; background: rgba(255, 255, 255, .04); font-size: 11.5px; }
.drow .av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 10px Sora, sans-serif; background: rgba(255, 255, 255, .12); flex: none; }
.drow small { display: block; color: var(--muted); font-size: 10px; }
.drow .tag { margin-left: auto; font-size: 9.5px; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--muted); white-space: nowrap; }
.drow.new { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; border: 1px solid transparent; transition: max-height .5s var(--ease), opacity .4s, padding .4s; }
.drow.new.show { max-height: 50px; opacity: 1; padding: 7px 8px; background: rgba(255, 122, 26, .16); border-color: rgba(255, 140, 50, .5); }
.drow.new .tag { background: var(--orange); color: #1a0a02; font-weight: 700; }

/* Cena 2: CRM */
.kan { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-height: 0; }
.kcol { border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); padding: 8px; display: flex; flex-direction: column; gap: 7px; transition: background .3s, border-color .3s; }
.kcol.hot { background: rgba(255, 122, 26, .1); border-color: rgba(255, 140, 50, .5); }
.kcol > span { font: 600 10px Inter; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.kcard { padding: 8px 9px; border-radius: 9px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); font-size: 11.5px; position: relative; z-index: 1; }
.kcard small { display: block; color: var(--muted); font-size: 10px; }
.kcard.lead { border-color: rgba(255, 140, 50, .6); background: rgba(255, 122, 26, .16); box-shadow: 0 8px 22px rgba(255, 90, 0, .25); }
.kcard.drag { z-index: 5; transition: transform .9s var(--ease); box-shadow: 0 16px 34px rgba(255, 90, 0, .4); }
.kph { border: 1px dashed rgba(255, 140, 50, .55); border-radius: 9px; background: rgba(255, 122, 26, .06); flex: none; transition: height .45s var(--ease), margin-bottom .45s var(--ease); }

/* Cena 3: agenda */
.dslots { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.slot { padding: 10px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, .16); font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; transition: background .4s, border-color .4s, color .4s; }
.slot b { color: var(--text); font-weight: 600; }
.slot.busy { border-style: solid; border-color: rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .05); }
.slot.hover { border-color: var(--orange); background: rgba(255, 122, 26, .1); }
.slot.booked { border-style: solid; border-color: rgba(255, 140, 50, .7); background: rgba(255, 122, 26, .22); color: var(--text); }

/* Cursor e avisos */
.dcursor { position: absolute; left: 0; top: 0; width: 20px; height: 20px; z-index: 20; pointer-events: none; opacity: 0;
  transition: transform .95s var(--ease), opacity .3s; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.dcursor.on { opacity: 1; }
.dcursor.click::after { content: ""; position: absolute; left: -8px; top: -8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--orange); animation: ripple .5s ease-out; }
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.dtoast { position: absolute; left: 58px; right: 12px; bottom: 12px; z-index: 15; padding: 10px 12px; border-radius: 12px; font-size: 12px; display: flex; align-items: center; gap: 9px;
  background: rgba(93, 255, 160, .13); border: 1px solid rgba(93, 255, 160, .4); color: #c4ffdc; backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .4s; }
.dtoast.show { opacity: 1; transform: none; }
.dtoast.wa { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: var(--text); }
.dtoast b { margin-left: auto; }

.dcap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 0; font-size: 13px; color: var(--muted); min-height: 22px; }
.dcap span:first-child { color: var(--text); font-weight: 500; transition: opacity .3s; }
.dsteps { display: flex; gap: 6px; }
.dsteps i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; position: relative; }
.dsteps i.on::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform-origin: left; animation: fill var(--dur, 4s) linear forwards; }
.dsteps i.done { background: var(--orange); }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Responsivo ---------- */
@media (max-width: 960px), (max-aspect-ratio: 1/1) {
  .split { flex-direction: column; align-items: stretch; }
  .split > .col, .split > .demo-col { flex: 0 0 auto; }
  .dwin { height: 330px; }
}
@media (max-width: 560px) {
  .g2 { grid-template-columns: 1fr; }
  .kan { grid-template-columns: 1fr 1fr; }
  .kcol[data-col="agendado"] { display: none; }
  .dview { padding: 12px 10px; }
  .dleads-grid { grid-template-columns: 1fr; }
  .dleads-grid .dpanel:last-child { display: none; }
  .dnav { width: 38px; }
}
@media (max-height: 700px) and (min-width: 961px) {
  .dwin { height: 300px; }
  .split .tile p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dcursor { display: none; }
  .dsteps i.on::after { animation: none; transform: none; }
}

@media (max-aspect-ratio: 1/1) and (min-width: 700px) {
  .split { justify-content: center; gap: 36px; }
  .demo { zoom: 1.55; }
}

/* Cena 1: formulário de agendamento no site */
.dform { display: flex; flex-direction: column; gap: 8px; }
.dfield { padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: 12px;
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.dfield small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 1px; }
.dfield.show { opacity: 1; transform: none; }
.dbtn { margin-top: 4px; padding: 10px; border-radius: 9px; text-align: center; font-weight: 600; font-size: 12px;
  background: rgba(255, 255, 255, .1); color: var(--muted); transition: background .3s, color .3s; }
.dbtn.ok { background: linear-gradient(135deg, #ffa24d, var(--orange-hot)); color: #1a0a02; }

/* Seção "Em todo pacote": título mais curto em 2 linhas para caber na altura */
.split h2 { max-width: 24ch; font-size: clamp(24px, 3vw, 40px); }
.split .also { margin-top: 0; }
