/* Smidity — demosektionen "Redigera → 1 klick → Live i FiveM" (startsidan och /fivem-menu).
   Arctic: bakgrund #090f18, panel #101925, upphöjd #172331, text #edf3fa, sekundär #93a3b6,
   accent #9eddf4, text på accent #09202b. Manrope för text, Space Grotesk för rubriker. */
.smidity-demo-flow { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; width: min(1200px, calc(100% - 32px)); margin: clamp(40px, 6vw, 88px) auto; padding: clamp(22px, 3.5vw, 44px); color: #edf3fa; font: 15px/1.55 Manrope, system-ui, sans-serif; background: radial-gradient(120% 140% at 100% 0%, rgba(158, 221, 244, .12), transparent 55%), #101925; border: 1px solid #22344a; border-radius: 22px; }
.smidity-demo-flow *, .smidity-demo-flow *::before, .smidity-demo-flow *::after { box-sizing: inherit; }
.smidity-demo-flow .sdf-kicker { margin: 0 0 10px; color: #9eddf4; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.smidity-demo-flow h2 { margin: 0 0 12px; font: 700 clamp(28px, 3.6vw, 44px)/1.08 "Space Grotesk", Manrope, system-ui, sans-serif; letter-spacing: -.01em; }
.smidity-demo-flow .sdf-lead { margin: 0 0 22px; color: #93a3b6; max-width: 46ch; }
.smidity-demo-flow .sdf-steps { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.smidity-demo-flow .sdf-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 12px 14px; background: #172331; border: 1px solid #22344a; border-radius: 12px; }
.smidity-demo-flow .sdf-step-number { display: grid; place-items: center; width: 32px; height: 32px; color: #09202b; background: #9eddf4; border-radius: 50%; font: 700 15px/1 "Space Grotesk", Manrope, sans-serif; }
.smidity-demo-flow .sdf-steps h3 { margin: 4px 0 2px; font: 600 16px/1.3 "Space Grotesk", Manrope, sans-serif; }
.smidity-demo-flow .sdf-steps p { margin: 0; color: #93a3b6; font-size: 14px; }
.smidity-demo-flow .sdf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.smidity-demo-flow .sdf-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; color: #edf3fa; border: 1px solid #2d4560; border-radius: 999px; font-weight: 600; text-decoration: none; }
.smidity-demo-flow .sdf-cta:hover { border-color: #9eddf4; }
.smidity-demo-flow .sdf-primary { color: #09202b; background: #9eddf4; border-color: #9eddf4; }
.smidity-demo-flow .sdf-primary:hover { background: #b6e7f8; }
.smidity-demo-flow :focus-visible { outline: 2px solid #9eddf4; outline-offset: 3px; }
.smidity-demo-flow .sdf-media { margin: 0; }
.smidity-demo-flow .sdf-media figcaption { margin-top: 10px; color: #93a3b6; font-size: 13px; }
.smidity-demo-flow .sdf-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #090f18; border: 1px solid #22344a; border-radius: 16px; object-fit: cover; }

/* Illustrationen: tre bildrutor i en slinga på 9 sekunder. */
.smidity-demo-flow .sdf-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #090f18; border: 1px solid #22344a; border-radius: 16px; }
.smidity-demo-flow .sdf-frame { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; animation: sdf-cycle 9s infinite; }
.smidity-demo-flow .sdf-frame-edit { animation-delay: 0s; }
.smidity-demo-flow .sdf-frame-click { animation-delay: 3s; }
.smidity-demo-flow .sdf-frame-game { animation-delay: 6s; }
@keyframes sdf-cycle { 0% { opacity: 0; } 4% { opacity: 1; } 31% { opacity: 1; } 36% { opacity: 0; } 100% { opacity: 0; } }
.smidity-demo-flow .sdf-window { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #101925; border-bottom: 1px solid #22344a; }
.smidity-demo-flow .sdf-dots { display: flex; gap: 6px; }
.smidity-demo-flow .sdf-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2d4560; }
.smidity-demo-flow .sdf-window-title { color: #93a3b6; font-size: 12px; letter-spacing: .04em; }
.smidity-demo-flow .sdf-editor { flex: 1; display: grid; grid-template-columns: 14% 1fr 22%; gap: 12px; padding: 14px; min-height: 0; }
.smidity-demo-flow .sdf-rail, .smidity-demo-flow .sdf-panel { display: grid; align-content: start; gap: 8px; padding: 10px; background: #101925; border: 1px solid #22344a; border-radius: 10px; }
.smidity-demo-flow .sdf-rail i, .smidity-demo-flow .sdf-panel i { display: block; height: 10px; border-radius: 5px; background: #172331; }
.smidity-demo-flow .sdf-panel i:first-child { background: linear-gradient(90deg, #9eddf4 62%, #172331 62%); }
.smidity-demo-flow .sdf-editor img, .smidity-demo-flow .sdf-game img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.smidity-demo-flow .sdf-editor img { background: radial-gradient(circle at 50% 60%, #1b2a3b, #0d1520 70%); border-radius: 10px; }
.smidity-demo-flow .sdf-click { position: relative; flex: 1; display: grid; place-content: center; justify-items: center; gap: 16px; background: radial-gradient(circle at 50% 45%, #172331, #090f18 70%); }
.smidity-demo-flow .sdf-button { padding: 14px 28px; color: #09202b; background: #9eddf4; border-radius: 999px; font: 700 clamp(15px, 2vw, 20px)/1 "Space Grotesk", Manrope, sans-serif; box-shadow: 0 0 0 0 rgba(158, 221, 244, .5); animation: sdf-press 9s infinite 3s; }
@keyframes sdf-press { 0%, 12% { transform: scale(1); box-shadow: 0 0 0 0 rgba(158, 221, 244, .5); } 14% { transform: scale(.94); } 18% { transform: scale(1); box-shadow: 0 0 0 18px rgba(158, 221, 244, 0); } 100% { transform: scale(1); } }
.smidity-demo-flow .sdf-cursor { position: absolute; left: 58%; top: 52%; width: 18px; height: 18px; border-left: 3px solid #edf3fa; border-top: 3px solid #edf3fa; transform: rotate(-8deg); animation: sdf-cursor 9s infinite 3s; }
@keyframes sdf-cursor { 0% { translate: 60px 50px; } 12% { translate: 0 0; } 100% { translate: 0 0; } }
.smidity-demo-flow .sdf-sending { color: #93a3b6; font-size: 13px; opacity: 0; animation: sdf-sending 9s infinite 3s; }
@keyframes sdf-sending { 0%, 18% { opacity: 0; } 24%, 33% { opacity: 1; } 36%, 100% { opacity: 0; } }
.smidity-demo-flow .sdf-game { position: relative; flex: 1; padding: 6% 8% 4%; background: linear-gradient(180deg, #24384f 0%, #43617e 46%, #2c3b48 47%, #161f29 100%); }
.smidity-demo-flow .sdf-toast { position: absolute; left: 4%; top: 6%; display: grid; gap: 2px; padding: 10px 14px; color: #edf3fa; background: rgba(9, 15, 24, .86); border-left: 3px solid #7fe0a8; border-radius: 8px; font-size: 13px; }
.smidity-demo-flow .sdf-toast b { font-weight: 700; }
.smidity-demo-flow .sdf-toast span { color: #9eddf4; }

/* /fivem-menu: guiden i avsnittet Testa i FiveM. */
.sdf-guide { margin: 4px 0 16px; padding: 14px 16px; color: #edf3fa; background: #172331; border: 1px solid #22344a; border-left: 3px solid #9eddf4; border-radius: 10px; }
.sdf-guide h3 { margin: 0 0 8px; font: 600 16px/1.3 "Space Grotesk", Manrope, sans-serif; }
.sdf-guide ol { margin: 0; padding-left: 20px; }
.sdf-guide li { margin: 4px 0; }
.sdf-guide a { color: #9eddf4; }

@media (prefers-reduced-motion: reduce) {
  .smidity-demo-flow .sdf-frame, .smidity-demo-flow .sdf-button, .smidity-demo-flow .sdf-cursor, .smidity-demo-flow .sdf-sending { animation: none; }
  .smidity-demo-flow .sdf-frame-game { opacity: 1; }
}
@media (max-width: 900px) {
  .smidity-demo-flow { grid-template-columns: 1fr; }
  .smidity-demo-flow .sdf-media { order: -1; }
}
@media (max-width: 480px) {
  .smidity-demo-flow { width: calc(100% - 20px); padding: 18px; border-radius: 16px; }
  .smidity-demo-flow .sdf-editor { grid-template-columns: 1fr; }
  .smidity-demo-flow .sdf-rail, .smidity-demo-flow .sdf-panel { display: none; }
}
