/* ============================================
   HAND-DRAWN SKETCH DIAGRAMS + desktop/assistant mock (sketch.js)
   Lines draw themselves when scrolled into view; orange dots then travel
   along the arrows. Illustrations of the plan, not product previews.
   ============================================ */

.sk-sec { padding: 110px 0; position: relative; }
.sk-sec.alt { background: var(--bg-cream); }
.sk-sec .section-head { margin-bottom: 30px; }

.sk { position: relative; max-width: 1180px; margin: 0 auto; }
.sk svg { display: block; width: 100%; height: auto; overflow: visible; }

.sk-path {
  fill: none;
  stroke: #1a1410;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s cubic-bezier(.6, .05, .3, 1) calc(var(--i, 0) * .035s);
}
.sk-path.hot { stroke: #FF5A1F; }
.sk-path.thin { stroke-width: 1.6; }
.sk-path.dash { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; transition: opacity .6s ease calc(var(--i, 0) * .035s + .6s); }
.sk-fill { fill: rgba(255, 90, 31, .14); stroke: none; opacity: 0; transition: opacity .7s ease calc(var(--i, 0) * .035s + .5s); }
.sk-text {
  opacity: 0;
  transform: translateY(6px);
  transform-box: fill-box;
  transition: opacity .6s ease calc(var(--i, 0) * .035s + .4s), transform .6s ease calc(var(--i, 0) * .035s + .4s);
}
.sk-hand { font-family: "Caveat", "Comic Sans MS", cursive; font-size: 30px; font-weight: 600; fill: #1a1410; }
.sk-hand.hot { fill: #E5480F; }
.sk-hand.sm { font-size: 22px; }
.sk-sub { font-family: var(--font-sans); font-size: 14px; fill: #6f655c; }
.sk-in { font-family: var(--font-mono); font-size: 15px; font-weight: 500; fill: #E5480F; letter-spacing: .04em; }

.sk.is-on .sk-path { stroke-dashoffset: 0; }
.sk.is-on .sk-path.dash,
.sk.is-on .sk-fill { opacity: 1; }
.sk.is-on .sk-text { opacity: 1; transform: none; }

/* Data dots travelling along the arrows */
.sk-dot { fill: #FF5A1F; opacity: 0; offset-rotate: 0deg; }
.sk.is-on .sk-dot { animation: sk-travel 2.6s cubic-bezier(.45, 0, .25, 1) infinite; animation-delay: calc(3.4s + var(--i, 0) * .45s); }
@keyframes sk-travel {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.sk-caption { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 18px; }

/* ---------- Desktop + "Ask Glixy SLM" mock ---------- */
.sk-desk-wrap { max-width: 980px; margin: 60px auto 0; position: relative; }
.sk-desk {
  position: relative;
  background: #fffdf9;
  border: 2.4px solid #1a1410;
  border-radius: 16px 20px 14px 18px / 18px 14px 20px 16px;
  box-shadow: 8px 10px 0 rgba(26, 20, 16, .08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) rotate(-.4deg);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
}
.sk-desk-wrap.is-on .sk-desk { opacity: 1; transform: rotate(-.4deg); }
.sk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 2px solid #1a1410;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #4a3f37;
}
.sk-bar i { width: 10px; height: 10px; border-radius: 50%; border: 1.8px solid #1a1410; }
.sk-bar span { margin-left: 8px; }
.sk-bar em { margin-left: auto; font-style: normal; color: #E5480F; }
.sk-desk-body { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 360px; }
.sk-doc { padding: 22px 24px; border-right: 2px dashed rgba(26, 20, 16, .35); }
.sk-doc h4 { font-family: "Caveat", cursive; font-size: 28px; font-weight: 600; color: #1a1410; }
.sk-doc .sk-line { height: 9px; border-radius: 6px; background: rgba(26, 20, 16, .1); margin: 12px 0; }
.sk-doc .sk-line.hl { background: rgba(255, 90, 31, .28); transition: background .4s ease; }
.sk-doc .sk-line.w60 { width: 60%; } .sk-doc .sk-line.w80 { width: 80%; } .sk-doc .sk-line.w45 { width: 45%; }
.sk-doc .sk-total { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 12px; border-top: 2px solid #1a1410; font-family: "Caveat", cursive; font-size: 24px; }
.sk-chat { display: flex; flex-direction: column; padding: 16px 18px; gap: 10px; background: #fff7ef; }
.sk-chat-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: #1a1410; }
.sk-chat-head b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #FF5A1F; color: #fff; font-size: 13px; }
.sk-msgs { flex: 1; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; min-height: 250px; }
.sk-msg {
  max-width: 92%;
  padding: 10px 13px;
  border: 2px solid #1a1410;
  border-radius: 14px 16px 14px 4px / 14px 12px 16px 4px;
  background: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  color: #1a1410;
  animation: sk-pop .35s cubic-bezier(.2, .8, .2, 1) both;
}
.sk-msg.me { align-self: flex-end; background: #1a1410; color: #fff8f1; border-radius: 16px 14px 4px 14px / 12px 14px 4px 16px; }
.sk-msg .src { display: inline-block; margin-top: 7px; padding: 2px 9px; border-radius: 999px; background: #FFE1D3; color: #B23A0C; font-family: var(--font-mono); font-size: 11px; }
.sk-typing { display: inline-flex; gap: 4px; }
.sk-typing i { width: 6px; height: 6px; border-radius: 50%; background: #1a1410; animation: sk-blink 1s infinite; }
.sk-typing i:nth-child(2) { animation-delay: .15s; } .sk-typing i:nth-child(3) { animation-delay: .3s; }
.sk-ask { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 2px solid #1a1410; border-radius: 12px; background: #fff; font-size: 13px; color: #8a7f74; }
.sk-ask::after { content: "↵"; margin-left: auto; color: #E5480F; }
@keyframes sk-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sk-blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

.sk-note {
  position: absolute;
  font-family: "Caveat", cursive;
  font-size: 24px;
  font-weight: 600;
  color: #E5480F;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .6s ease 1.1s;
}
.sk-desk-wrap.is-on .sk-note { opacity: 1; }
.sk-note.n1 { right: -16px; top: -38px; transform: rotate(-3deg); }
.sk-note.n2 { left: -8px; bottom: -40px; transform: rotate(2deg); color: #4a3f37; }

@media (max-width: 760px) {
  .sk-sec { padding: 80px 0; }
  .sk-desk-body { grid-template-columns: 1fr; }
  .sk-doc { border-right: 0; border-bottom: 2px dashed rgba(26, 20, 16, .35); }
  .sk-note.n1 { right: 6px; top: -34px; font-size: 20px; }
  .sk-note.n2 { font-size: 20px; }
  .sk-hand { font-size: 34px; }
  .sk-sub { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .sk-path, .sk-fill, .sk-text, .sk-desk, .sk-note, .sk-msg { transition: none !important; animation: none !important; }
  .sk .sk-path { stroke-dashoffset: 0; }
  .sk .sk-path.dash, .sk .sk-fill, .sk .sk-text, .sk-desk, .sk-note { opacity: 1; transform: none; }
  .sk-dot { display: none; }
}

/* Sketch sections inside the VDI and SLM pages */
.sk-vdi-sub { max-width: 660px; margin: 12px 0 34px; font-size: 15px; line-height: 1.75; color: #5e6b77; }
.sk-vdi .sk { margin-top: 10px; }
.sk-slm .sk { margin-top: 20px; }
.sk-slm .sk-desk-wrap, .sk-vdi .sk-desk-wrap { margin-top: 70px; margin-bottom: 30px; }
